Ion-toggle generate item markup how to avoid it


#1

Hi guys,

I noticed that the ion-toggle is always generating the item html markup, what if I want to use the ion-toggle directive without having the .item markup. It should be possible.

I don’t want to use the ion-toggle within a list for example, the framework should be flexible about the implementation.

Thank You :slight_smile:
Jonathan


#2

Thats why theres the css version of it :wink:

<label class="toggle">
   <input type="checkbox">
   <div class="track">
     <div class="handle"></div>
   </div>
</label>