0 votes
in JavaScript by
Router and Route Handlers in Ember JS

1 Answer

0 votes
by

The URL loads the app by entering the URL in the address bar and user will click a link within

the app. The Ember uses the router to map the URL to a route handler. The router matches

the existing URL to the route which is then used for loading data, displaying the templates

and setting up an application state.

The Route handler performs the following actions:

1. It provides the template.

2. It defines the model that will be accessible to the template.

3. If there is no permission for the user to visit a particular part    of the app, then the router will redirect to a new route.

Related questions

0 votes
asked Mar 12, 2020 in JavaScript by GeorgeBell
0 votes
asked Mar 13, 2020 in JavaScript by Tate
...