I'm building a mobile app using Ratchet and Angular, and development has been great and fast.
However, I've run into a lot of trouble when using toggles. Ratchet adds an "active" class in this div
when its state is active:
<div class="toggle">
<div class="toggle-handle"></div>
</div>
However this is done outside of Angular, so my attempts to create a directive to $watch this change has been unsuccessful. Also, I haven't tested it but ngClass probably does not update the model if a class is added outside of Angular.
Ratchet's toggle.js has an event listener that fires when state is changed, but again, not only this is javascript outside of angular, but I am also not using jQuery, so I don't know how to add this callback from a view loaded inside a ng-view, and change the controller scope from such a callback.
Any help is appreciated.