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

devquora
devquora

Posted On: Feb 22, 2018

 

Models are objects that represent the underlying data which is presented to the user by your application. Different applications have different objects or models, and it depends completely on what problem they are trying to solve. For example, a photo album is a collection of many photos i.e. group of photos. And, a photo sharing application has a photo model to represent a particular photo. Models are persistent and most of them are loaded from and saved to a server that uses the database to store data. Once the models are loaded from the storage, the components translate the data into the user interface with which the user can interact. Defining model in ember.js: –

Syntax-

ember generate model model_name;

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Emberjs Interview Questions

    What is Ember.js? Write the steps to create an app in Ember.js?

    Ember.js is an open source technology written in javascript based on a model view pattern and was developed by ember cor..

    Emberjs Interview Questions

    Explain directory structure in Ember.js?

    The new command generates a project structure also called directory structure with the following files and directories:I..

    Emberjs Interview Questions

    Explain what is ember-data?

    Ember comes with a data management library called Ember data which deals with application data that defines the structur..