I'm new to Angular, and have been trying to implement the Bootstrap Angular toggle feature/module on my website.
There is documentation on the linked website, but full working examples (e.g. small independent fiddles) are nowhere to be found. I can't get this feature working at all, so I've loaded up the resources, and made a js-fiddle of what I've been trying:
or if you prefer to just look at the code:
<script>angular.module('myApp', ['ui.toggle']);</script>
<div ng-app="myApp">
<toggle ng-model="toggleValue" ng-change="changed()"></toggle>
</div>
Anyone familiar to Angular can probably work this out in 10 seconds, but I've just started and can't seem to find good examples to learn from.
Where am I wrong here, html call or dependency declaration (or both)?