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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -