Web Technology Assignment
Web Technology Assignment
FEATURES OF EMBER JS
AKASH BHAT
What is Ember.js?
Ember.js is an open source, free JavaScript client-side
framework used for developing web applications. It
allows building client side JavaScript applications by
providing a complete solution which contains data
management and an application flow.
2
Why Ember.js
• Ember.js is an open source JavaScript framework
under MIT license.
• It provides the new binding syntax using
the HTMLBars template engine which is a superset of
the Handerlbars templating engine.
• It provides the Glimmer rendering engine to increase
the rendering speed.
• It provides the Command Line Interface utility that
integrates Ember patterns into development
process and focuses easily on the developer
productivity.
• It supports data binding to create the link between
two properties and when one property changes, the
other property will get upgraded with the new
value.
3
Features of Ember.js
• Ember.js is used for creating reusable and
maintainable JavaScript web applications.
• Ember.js has HTML and CSS at the core of the
development model.
• It provides the instance initializers.
• The routes are core features of the Ember.js which
are used for managing the URL's.
• Ember.js provides Ember Inspector tool for
debugging Ember applications.
• Ember.js uses templates that help to automatically
update the model, if the content of applications gets
changed.
4
The diagram below illustrates how routes,
controllers, views, templates and models
interact with each other.
5
These are some of the most
important features of Ember JS:
1. Binding
2. Object Modelling
3. Routing
4. Templates
5. Components
6. Models
7. Controllers
8. Enumerables
9. Testing
10.Ember CLI
6
BINDING:
Unlike most other frameworks that include some sort of
binding implementation, bindings in Ember.js can be
used with any object. That said, bindings are most often
used within the Ember framework itself, and for most
problems Ember app developers face, computed
properties are the appropriate solution.
7
ROUTER:
8
OBJECT MODELLING:
JavaScript objects don't support the observation of
property value changes. Consequently, if an object is
going to participate in Ember's binding system you may
see an Ember.Object instead of a plain object.
9
TEMPLATES:
A template is used to create a standard
layout across multiple pages. When you change a
template, the pages that are based on that
template automatically get changed. Templates
provide standardization controls.
10
COMPONENTS:
Ember components consist of two parts: some
JavaScript and a HTMLBars template. The JavaScript
component file defines the behavior and properties of
the component.
11
MODELS:
Models are objects that represent the underlying data
that your application presents to the user. Different apps
will have very different models, depending on what
problems they're trying to solve.
12
CONTROLLERS:
Controllers behave like a specialized type of Component
that is rendered by the router when entering a Route.
13
ENUMERABLES:
In Ember.js, an Enumerable is any object that contains a
number of child objects, and which allows you to work
with those children using the Ember.Enumerable API.
14
TESTING:
Testing is a core part of the Ember framework and its
development cycle.
Let's assume you are writing an Ember application which
will serve as a blog. This application would likely include
models such as user and post. It would also include
interactions such as login and create post.
INTEGRATION TESTS:
Integration tests are used to test user interaction and
application flow.
UNIT TESTS:
Unit tests are used to test isolated chunks of
functionality, or "units" without worrying about their
dependencies.
15
EMBER-CLI:
Ember and Ember-CLI are two different things entirely,
but neither would be totally whole without the other.
Ember-CLI is a command line utility that comes along
with the Ember framework’s software stack. For the
non-developer, a CLI, or a command line interface, is a
simple visual interface that lets humans interact with a
computer’s operating system. Ember-CLI is a productivity
rocket ship, with support for tools like CoffeeScript,
Handlebars, LESS, and Sass. Ember also comes with the
option to use other components of its software stack
including Ember Data, a data library, and Ember
Inspector, a testing extension for debugging apps.
16