diff --git a/demo.js b/demo.js index 7f85afb..e447297 100644 --- a/demo.js +++ b/demo.js @@ -7,6 +7,14 @@ angular.module('demoapp', ['ngMdIcons']) $scope.fill = colors[0]; $scope.size = 48; + $scope.clickIcon = 'thumb_up'; + $scope.clickIconMorph = function () { + if ($scope.clickIcon == 'thumb_up') + $scope.clickIcon = 'thumb_down'; + else + $scope.clickIcon = 'thumb_up'; + } + setInterval(function() { var random = Math.random(); if (random < 0.2) { diff --git a/index.html b/index.html index 3abe213..47cbdbd 100644 --- a/index.html +++ b/index.html @@ -109,6 +109,7 @@

Angular Material Icons v0.4.0


options=
'{"duration": 375}'
(default is 750)

options=
'{"rotation": "none"}'
(default is clock)

options=
'{"rotation": "counterclock"}'
+

Example:
Morph on ng-click


Note that options attribute is a JSON parse-able string so surround keys with double-quotes.