diff --git a/app/scripts/directives/setting.js b/app/scripts/directives/setting.js index fd4e43b..3735d66 100644 --- a/app/scripts/directives/setting.js +++ b/app/scripts/directives/setting.js @@ -126,6 +126,12 @@ }, function (value) { scope.optionValue = value; }); + + scope.$watch(function () { + return scope.option; + }, function (value) { + angular.element('[data-toggle="popover"]').popover(); + }); } }; }]); diff --git a/app/views/setting.html b/app/views/setting.html index ec8825f..3ce500b 100644 --- a/app/views/setting.html +++ b/app/views/setting.html @@ -2,8 +2,8 @@
- +