Hi I want extend my super route class something like this :

//routes/auth.js
export default Em.Route.extend({
  someFunction:function(){
     //code
  }
});

//routes/test.js
export default App.AuthRoute.extend({
  model: function(){
     return this.someFunction(); //Call function from super class
  }
});

routes/test.js doesnt work -white screen and nothing in console - I do not know naming conventions to get this.

有帮助吗?

解决方案

You need to import any other modules that you reference first so that they can be resolved:

import AuthRoute from 'appkit/routes/auth';

export default AuthRoute.extend({
   ....
});
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top