Ionic html tags. When use ion prefix and when not?

Hi, I see some example that use ionic tags withou ionic prefix that is and not .
Why this?

1 Like

The difference between the two are the pure html that just use the css, or the directives that have extended the functionality.

The ion- prefixed directives, ion-list,ion-item, etc, are angular directives that let you have extended features (swipe to delete, reorder, etc).

Make sense?

3 Likes

Uhm…Is it possibile to add css class to ion directive?

Of course :smile:. Thats actually how some attributes are applied to directives.

<ion-item class="my-item-settings"></ion-item>
2 Likes

Any docs for this tags ?

1 Like

http://ionicframework.com/docs/components/ ?

css = without prefix -> only css for the styling
javascript = with prefix -> directives with additional functionality

2 Likes

Oh, thanks, so special html tags in javascript section, ok.