Changing Element Colour on Hover AngularJS

后端 未结 6 762
失恋的感觉
失恋的感觉 2021-02-07 12:50

So, I\'m just getting started with angularjs and I\'m already confused. I want to change the colour of a list element that corresponds to a hex code colour that is in an array.

6条回答
  •  误落风尘
    2021-02-07 13:33

    in the code bellow i add easy code to understand how to active style with condition. I hope that help you

Javascript Code

function changeColorMenu(indexMenu,bool)
    {
        $scope.isOver = bool;
        $scope.linkToActive = indexMenu;
    }

提交回复
热议问题