ember.js - EmberJS - Access Controller value from application template -


learning emberjs in trial fire , 1 issue comes generated linkto's in application header. have paginator on resource such url becomes #/page/n. linkto not capable of picking on n application template, (because i'm not in pagecontroller context), link #/ if page set.

what best way solve this? i'm using http://hawkins.io/2013/07/pagination-with-ember/ base paginator.

if understood correctly, want access pagecontroller , it's pagination helpers different controller. can using needs access pagecontroller.

needs: 'page', pagebinding: 'controllers.page' 

now can access pagecontroller within controller using this.get('page'), , use other methods on. in template can bind page.foo properties.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -