I am currently working on displaying a class using ng-class
in the box element of my HTML code. However, it does not seem to be functioning as expected. Can someone please help me identify what I might be doing wrong?
Check out this link for reference.
<div ng-controller="myObject">
<a href="javascript:void(0)" ng-click="updateClass()">{{ type ? 'One' : 'Two' }}</a>
<div class="box" ng-class="{{ type ? 'one' : 'two' }}"></div>
</div>