Element ember-view


#1

Hi,

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


#2

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.


#3

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


#4

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


#5

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


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