O'Reilly logo

Instant Ember.js Application Development How-to by Marc Bodmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Ember view (Simple)

Views will help you to translate low-level browser events into semantic events. These semantic events will allow the Ember router to adjust your application into the proper state. Views can be created and destroyed at render time as well as during the run loop of your application. The Ember.View class includes a variety of properties for creating different types of views. A few of the common ones that you could use are as follows:

  • tagName: The default HTML tag is div, but it can be changed using tagName.
  • classNames: Sets the HTML class attribute with the provided array of strings.
  • classNameBindings: Sets the HTML class attribute based on an array of properties for the view. These properties can be computed properties, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required