├── app ├── views │ └── .gitkeep ├── components │ ├── .gitkeep │ ├── route-displayer.js │ ├── code-editor.js │ ├── template-visualization.js │ └── route-tree.js ├── helpers │ └── .gitkeep ├── models │ └── .gitkeep ├── routes │ ├── .gitkeep │ └── route.js ├── styles │ ├── .gitkeep │ └── app.scss ├── templates │ ├── .gitkeep │ ├── components │ │ ├── .gitkeep │ │ ├── route-children.hbs │ │ ├── route-displayer.hbs │ │ ├── validation-hooks.hbs │ │ ├── setup-hooks.hbs │ │ └── template-visualization.hbs │ ├── index.hbs │ ├── route.hbs │ └── application.hbs ├── controllers │ ├── .gitkeep │ ├── route.js │ └── application.js ├── router.js ├── app.js └── lib │ └── route-debug.js ├── public ├── .gitkeep ├── robots.txt └── crossdomain.xml ├── vendor └── .gitkeep ├── tests ├── unit │ └── .gitkeep ├── helpers │ ├── resolver.js │ └── start-app.js ├── test-helper.js ├── .jshintrc └── index.html ├── .bowerrc ├── testem.json ├── .travis.yml ├── deploy ├── .gitignore ├── bower.json ├── .editorconfig ├── .jshintrc ├── Brocfile.js ├── package.json ├── config └── environment.js └── README.md /app/views/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/components/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/routes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/styles/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/templates/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/templates/components/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "bower_components" 3 | } 4 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # robotstxt.org/ 2 | 3 | User-agent: * 4 | -------------------------------------------------------------------------------- /app/templates/index.hbs: -------------------------------------------------------------------------------- 1 |
Select a route from the route tree to see detailed information
3 | -------------------------------------------------------------------------------- /testem.json: -------------------------------------------------------------------------------- 1 | { 2 | "framework": "qunit", 3 | "test_page": "tests/index.html", 4 | "launch_in_ci": ["PhantomJS"], 5 | "launch_in_dev": ["PhantomJS", "Chrome"] 6 | } 7 | -------------------------------------------------------------------------------- /app/templates/components/route-children.hbs: -------------------------------------------------------------------------------- 1 |{{route.value.url}}
5 | {{/if}}
6 |
7 | {{route-children children=route.children isShowingSubStates=isShowingSubStates}}
8 | {{route.value.name}} → beforeModel()
3 | {{route.value.name}} → model()
6 | {{route.value.name}} → afterModel()
9 | {{route.value.name}} → activate()
3 | {{route.value.name}} → setupController()
6 | {{route.value.name}} → renderTemplate()
9 | \{{outlet}} contains one of:
13 | \{{outlet}} in {{templateFile}} because there are no child routes.
26 | {{/if}}
27 | {{/if}}
28 | {{value.url}}
18 | {{else}}
19 | This route has no URL, as it is a parent route. You will always be in a child state of this route (e.g. {{value.name}}.index)
{{routeFile}}{{controllerFile}}{{templateFile}}This is what the nested templates look like for this route. All templates shown below will be visible at the same time when you are in this route:
31 | {{template-visualization parents=parentsAndSelf isShowingSubStates=isShowingSubStates usePods=usePods podModulePrefix=podModulePrefix}} 32 |When you visit {{value.url}}, these are the route hooks that will be called:
First all of these model hooks will be called in this order:
39 |If none of the model hooks abort the transition, either by calling transition.abort() or this.transitionTo('someOtherRoute'), then these setup hooks will be called in this order after all the validation hooks have run:
2 |
3 | Like this? Also check out Ember Data Model Maker
5 |See what route structure, templates and route hooks are for a given ember route definition. Enter your router code below to see the structure:
12 | {{code-editor value=routesInput}} 13 |20 |
25 | Line {{errorLineNumber}} Column {{errorColumn}} 26 |
27 |31 |