Following Angular Code does not work in SharePoint 2013 - On my local Machine it runs perfectly:
<div ng-init="value = 'off'">
<button ng-click="value = { 'on': 'off', 'off':'on'}[value]">On/Off</button>
{{ value }}
<h1 ng-show="value == 'on'" >Foobar1</h1>
<h1 ng-show="value == 'off'" >Foobar2</h1>
When I click on the Button in SharePoint it shows me shortly 'foobar1', but after a second it change automatically back to 'foobar2'.
Can anybody help me on that ?