我想知道是否有人遇到过这个问题,将Emberjs从1.8.1升级到1.9.1
我在我的开发控制台中收到此错误
This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.
除了升级到Ember 1.9.1和Handlebars 2.0之外 我也在使用gulp-auto-emblem 我检查了https://github.com/machty/emblem.js/,似乎还没有支持Handlebars 2.0 ..
通过这样做,我找到了解决链接问题的解决方案:
link-to 'report.index' report
但我需要在我的链接帮助
中有类名 link-to 'report.index' report id class='button button--viewReport'
但这不起作用..
任何反馈都将不胜感激..谢谢
答案 0 :(得分:0)
尝试使用classNames
代替class
link-to 'report.index' report id classNames='button button--viewReport'