Here is the code snippet I am working with:
<div ng-app="" ng-init="show_login=false;count=0">
<button> ng-click="show_login=!show_login;count=count+1">INSPIRE</button>
<form ng-show="show_login">
Username <input type="text"> <br>
Password <input type="password">
<p> {{count}} </p>
</form>
</div>
Everything works perfectly as expected, but when I add a name to the ng-app module, suddenly the form stops functioning.
<div ng-app="demo" ng-init="show_login=false;count=0">
<button> ng-click="show_login=!show_login;count=count+1">INSPIRE</button>
<form ng-show="show_login">
Username <input type ="text"> <br>
Password <input type = "password">
<p> {{count}} </p>
</form>
</div>
Does this mean that if a module name is provided, all manipulations and variable initializations must be done through controllers or have I misunderstood something?