Skip to main content

Am trying to add a class (blue) to a button when ever you hover the button using angularJSAngularJS.

HTML

HTML    
<button class="btn-add-optimize" ng-mouseover="hover(iets)">Add and Optimize</button>

angularJS
    

AngularJS

$scope.hover = function (iets) {
    var Dit = this;
    Dit.add("blue");
};

Anyone can help me out? Preferable Preferable a small example, it would be very appreciated!

Am trying to add a class (blue) to a button when ever you hover the button using angularJS

HTML    
<button class="btn-add-optimize" ng-mouseover="hover(iets)">Add and Optimize</button>

angularJS
    $scope.hover = function (iets) {
    var Dit = this;
    Dit.add("blue");
};

Anyone can help me out? Preferable a small example, it would be very appreciated!

Am trying to add a class (blue) to a button when ever you hover the button using AngularJS.

HTML

<button class="btn-add-optimize" ng-mouseover="hover(iets)">Add and Optimize</button>

AngularJS

$scope.hover = function (iets) {
    var Dit = this;
    Dit.add("blue");
};

Anyone can help me out? Preferable a small example, it would be very appreciated!

Source Link
Staafsak
  • 500
  • 2
  • 5
  • 12

Angular JS Change Class on ng-mouseover

Am trying to add a class (blue) to a button when ever you hover the button using angularJS

HTML    
<button class="btn-add-optimize" ng-mouseover="hover(iets)">Add and Optimize</button>

angularJS
    $scope.hover = function (iets) {
    var Dit = this;
    Dit.add("blue");
};

Anyone can help me out? Preferable a small example, it would be very appreciated!