I am developing an app in Angular using Angular UI Routing and a UI plug-in which that has "checkbox switches" based on bootstrap switches.
The problem is that the templates are loaded after the shell page which breaks the switches and they appear as normal checkboxes.Please note that the checkbox is wrapped in a parent div with class "switch" to appear properly.
My wish is to create a global solution and not having to add an attribute to each switch.
Here is a Plunker with the app so far: http://embed.plnkr.co/LRSGXqxjtbYcr6rjTj69/preview
I have just started learning Angular so I appreciate answers that are pretty specific. Thanks!
HTML:
<div class="switch">
<input type="checkbox">
</div>
JS:
$(".switch").switch();
Documentation: https://tictail.com/developers/documentation/uikit/#Switches