Route property in Template


#1

In Controller has a property called email ,then the template can use it {{email}} to present value. ex:

export default Ember.Controller.extend({ email:'my@email.com',

But How to dclare a property called email in route then the template can use it {{email}} to present value?


#2

You shouldn’t store state like that off your route, controllers are still part of the API.


#3

My property is in route. Now I new a controller But ,how to read property from route? (I need bind value from template and communicate both route and controller)