Thursday, 7 May 2015

angularjs change style


click to change style:



<button  ng-click="xxx(item)" class="asdfdddddddd" style="background-color : {{item.asdf}};" >sss</button>



        $scope.xxx = function(item){
            console.log("sadfasdfasdfasdf===");
            item.asdf = "red";
        }





No comments:

Post a comment