I cannot run function in the ng-class. I've copied what I've been doing, could you look for the error? What I want to do is to put the bold style on the element selected with a button. The Angular version is 1.3.4. Comment 'index' never shows in the console.I cannot run function in the ng-class. I've cop