Element ember-view


For what the ember-view element is needed? For example … If I works with CSS frameworks like bootstrap these element makes the css needed structure broken.

What is the meaning of this element?

Greetings Mario

Components needs container element. That’s what these are for. You can totally remove them by setting tagName to empty string. If you need bootstrap structure, you can still attach the bootstrap class names by using classNames or classNameBindings property.

Thanks, but how can I define an action for this element? I have to define an onclick action for my button.

Is button the component’s tagName? You can set the click property.

How can I set the click property for the ember-view element?

{{my-component tagName="" click=(action "ctrlAction")}}