Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain model with reference to ember.js. Also, tell how it is defined in it.



Explain model with reference to ember.js. Also, tell how it is defined in it...

Answer / Avaneendra Pathak

In Ember.js, a Model represents the data or business logic of an application. It defines the properties and behavior for an object that can be serialized and deserialized. To define a model, use Ember Data's built-in `DS.Model` class by extending it with your custom properties and methods.nnFor example:n```javascriptnimport DS from '@ember-data/data';nnexport default DS.Model.extend({n name: DS.attr('string'), // property definition for a string type attribute called 'name'n});```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ember.js Interview Questions

How you can define a new ember class?

1 Answers  


What is the role of adapters in ember.js?

1 Answers  


What are basic models of ember.js?

1 Answers  


Explain how is ember.js is different than traditional web application?

1 Answers  


Explain how router and {{outlet}} tag can be useful in ember.js?

1 Answers  


What are observers in ember.js?

0 Answers  


What do ember.js components specify?

1 Answers  


List out main components of ember.js?

1 Answers  


How to define a view in ember.js?

1 Answers  


What do you know by observers in ember.js?

1 Answers  


what is enumerables in ember.js ?

1 Answers  


What are the different template components in ember.js?

1 Answers  


Categories