inheritance - Ember-CLI extend a custom route (as a base "class") -


i'm using ember-cli develop ember app.

i have "super" route (in routes/authenticate.js), this:

import ember 'ember';  export default ember.route.extend({ }); 

i want make base class other routes in app, (route/home.js):

import ember 'ember';  export default app.authenticatedroute.extend({ }); 

it doesn't work. console says: uncaught referenceerror: app not defined

ember-cli guide doesn't have word on scenario (which believe essential).

anyone know how correctly , in simple way?

thanks, raka

i found answer: http://discuss.emberjs.com/t/base-route-in-ember-cli/7103

import authenticated './authenticated';  export default authenticated.extend({ }); 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -