标签: templates ember.js render routes
如何使用路线作为判断?
就是这样的例子:
如果当前路线为index.signup,那么此代码{{#link-to 'index.signup'}}signup{{/link-to}}将会动作。
index.signup
{{#link-to 'index.signup'}}signup{{/link-to}}
{{#if routeNameisSomething}} {{#link-to 'index.signup'}}signup{{/link-to}} {{else}} {{#link-to 'index.login'}}login{{/link-to}} {{/if}}