Skip to main content

Posts

Showing posts with the label Emberjs interview questions and answers

What Is ember Route?

What Is ember Router? Router is basically a medium that connects the application with browser’s address. In other words,  Router  takes the responsible for connecting point between browser’s address bar and our application. The Router using a route and resource might look like - App . Router . map ( function () {    this . resource ( "posts" , {  path:   "/"  },  function () {      this . route ( "new" , {  path:   "/new"  });    });    this . route ( "another" , {  path:   "/another"  }); }); What Is ember route? Route is a location where the request of a user reaches first after it is made or translated by a Router. Route decides what data should be provided to the Template. Example - App . Router . map ( function () {    this . resource ( "posts" , {  path:   "/"  },  function () {    ...