Google News
logo
Ember.js - Interview Questions
What is the different type of route models in Ember.js?
MDynamic Models : It provides the routes with dynamic segments. These segments are used to access the value from URL
Ember.Route.extend ({  
   model(parameter) {  
      //code block  
   }  
});  
  
Router.map(function() {  
   this.route('linkpage', { path: 'identifiers' });  
});  
Multiple Models : It is used to define multiple models through RSVP.hash.

Example :
Ember.Route.extend ({  
   model() {  
      return Ember.RSVP.hash({  
         //code block  
      })  
   }  
});  
Advertisement