Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button {{action "close"}}>
- {{#link-to 'register'}}Registreer{{/link-to}}
- </button>
- // template.hbs
- <button {{action "link" "register"}}>Registreer</button>
- ...
- // template-controller.js
- actions: {
- link: function(routeName) {
- this.transitionToRoute(routeName);
- this.close()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement