Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4869

Model isn't accessible in controller

$
0
0

I used the setupController hook in my route file, and this works in so much as I can access this.model in getters and methods. However, I notice I can’t do the same within a constructor or within a filter property. Using console.log(this.model) in the constructor will only return as undefined. I’m sure there’s something extremely obvious that I’m missing.

Here’s my route file. filetimeline_route

Here’s my controller file.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4869

Trending Articles