diff --git a/src/ng-switchery.js b/src/ng-switchery.js index b181129..b9044f4 100644 --- a/src/ng-switchery.js +++ b/src/ng-switchery.js @@ -54,7 +54,10 @@ angular.module('NgSwitchery', []) }) }, 0); } - initializeSwitch(); + scope.$watch('initValue',function(){ + initializeSwitch(); + }); + } return {