Tejas Damania
Tejas Damania

Reputation: 11

Ember.js data from a route does not show in template

as you can see, hbs has a placeholder for {{abcd}} and route returns the value for abcd but my page does not show that data. When i do a view source, i can see that js function is carried into the page! Am I missing something? do I need to write something in controller folder before route and model/template can talk to each other?

as you can see, hbs has a placeholder for {{abcd}} and route returns the value for abcd but my page does not show that data. When i do a view source, i can see that js function is carried into the page! Am I missing something? do I need to write something in controller folder before route and model/template can talk to each other?

Upvotes: 0

Views: 52

Answers (1)

user663031
user663031

Reputation:

Templates don't know anything about route properties. {{abcd}} would refer to a controller property. In order to access it you will have to go through the controller's model property {{model.abcd}}.

I would recommend you give the guides a thorough look.

Upvotes: 2

Related Questions