ember.js - Ember JS | How is ember differentiating Router resource and a route? -


ember makes use of router.js load resource , corresponding template application template. happens when particular route accessed? i.e how ember know accessing route not resource?

google question, you'll find lots of answers. or, read source code.

basically, resource resets directory path ember looks relevant assets @ top level of project. if have "authenticated" route checks authentication, , under have "users" route, you'll want make resource can keep "user" related assets such controller, route , template in user directory @ top level instead of under "authenticated" directory.


Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -