I am trying to toggle a div text on click of a button. I tried taking a scope variable and toggeling classname based on the variable. Where am I making the mistake here
Another approach... Use ng-switch You can toggle through multiple divs without the css hassle...
var myApp = angular.module('myApp',[]); function MyCtrl($scope) { }
test hello you hello me