I'm wondering why templating tag [[ opt.option ]] is not evaluating to a value sometimes in the following code
<span ng-repeat="opt in options">
<button ng-click="button = [[ opt.option ]]" ng-class="{ active : button == [[ opt.option ]] } ng-cloak>
<i class="icon-tick visible-in-active" ></i>[[ opt.option ]]
</button>
</span>
The buttons are are being outputted with names meaning the template tag for naming the button is working but when I click any of the buttons, none is being active meaning the templating tags for ng-click and ng-class are not evaluating. why is this?
Edit
I'm using django so I had to override {{}} with [[]] since django uses these tags too {{}}
I want to achieve THIS. when a button is clicked, it becomes active and the previous active one becomes inactive. This is what am getting JsFiddle