- EmberJS - Ember Inspector
- EmberJS - Configuring Ember.js
- EmberJS - Application Concerns
- EmberJS - Managing Dependencies
- EmberJS - Models
- EmberJS - Components
- EmberJS - Templates
- EmberJS - Router
- EmberJS - Object Model
- Creating and Running Application
- EmberJS - Core Concepts
- EmberJS - Installation
- EmberJS - Overview
- EmberJS - Home
EmberJS Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
EmberJS - Object Model
In Ember.js, all objects are derived from the Ember.Object. Object-oriented analysis and design technique is called object modepng. The Ember.Object supports features such as mixins and constructor methods by using the class system. Ember uses the
interface to extend the JavaScript Array prototype to give the observation changes for arrays and also uses the methods to extend the String prototype.The following table psts down the different types of object model in Ember.js along with their description −
S.No. | Types & Description |
---|---|
1 | Class is a template or blue print, that has a collection of variables and functions, whereas instances are related to the object of that class. You can create new Ember class by using the Ember.Object s extend() method. |
2 | This is nothing but updating the class implementation without redefining it. |
3 | A computed property declares functions as properties and Ember.js automatically calls the computed properties when needed and combines one or more properties in one variable. |
4 | The computed property accesses all items in an array to determine its value. |
5 | The observer observes the property such as computed properties and updates the text of the computed property. |
6 | The binding is a powerful feature of Ember.js which helps to create a pnk between two properties and if one of the properties gets changed, the other one is updated automatically. |