Customizing a Component's Element



You can customize the component's element such as attributes, class names by using subclass of Ember.Component in the JavaScript.

The following table lists down the different types of customizing a component's element −

S.No. Component Element & Description
1 Customizing Element

Customize the element by using Ember.Component subclass and set the tagName property to it.

2 Customizing Element's Class

Customize the element's class at the invocation time i.e. while calling the clas name.

3 Customizing Attributes

You can customize the attributes by binding them to a DOM element by using the attributeBindings property.

emberjs_component.htm
Advertisements