mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
Use $scope instead of scope in directives
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
restrict: 'EA',
|
||||
replace: true,
|
||||
scope: { title: '@', content: '@', placement: '@', animation: '&', isOpen: '&' },
|
||||
link: function(scope, element, attrs) {
|
||||
scope.$watch('content', function(value, oldValue) {
|
||||
scope.unsafeContent = $sce.trustAsHtml(scope.content);
|
||||
link: function($scope, element, attrs) {
|
||||
$scope.$watch('content', function(value, oldValue) {
|
||||
$scope.unsafeContent = $sce.trustAsHtml($scope.content);
|
||||
});
|
||||
},
|
||||
templateUrl: 'template/popover/popover-html.html'
|
||||
|
||||
Reference in New Issue
Block a user