this first part working fine.
<div ng-app="" ng-init="mySwitchone=true">
<p>
<button ng-disabled="mySwitchone">Click Me!</button>
</p>
<p>
<input type="checkbox" ng-model="mySwitchone"/>Button
</p>
<p>
{{ mySwitchone }}
</p>
</div>
But do not work on second part. What's wrong with this code. Can anyone tell me.
<div ng-app="" ng-init="myTest=true">
<p>
<button ng-disabled="myTest"> Click me</button>
</p>
<p>
<input type="checkbox" ng-model="myTest"/>Button
</p>
<p>
{{ myTest }}
</p>
</div>
ng-appon the second div. You can't declare this multiple times.