Programming
<input type="text" ng-model="user.name" />
<div ng-switch on="user.name"></div>
<p ng-switch-default>The winner is</p>
<h1 ng-switch-when="John">{{ user.name }}</h1>
Can anyone help me? I encountered an issue with Error: [$compile:ctreq]. When I removed these 4 lines, everything worked fine.
This example was taken from the 'Tech Tutorials' website (an excellent resource!)