diff --git a/detect-angular-sce-disabled b/detect-angular-sce-disabled new file mode 100644 index 00000000..ec69c8a0 --- /dev/null +++ b/detect-angular-sce-disabled @@ -0,0 +1,18 @@ +var app = angular.module('MyApp', []).config(function ($sceProvider) { + // ruleid: detect-angular-sce-disabled + $sceProvider.enabled(false); +}); + app.controller('myCtrl', function($scope) { + + $scope.userInput = 'foo'; + $scope.sayHello = function() { + $scope.html = "Hello " + $scope.userInput + "!" + + }; + + }); + + + var app = angular.module('MyApp2', []).config(function ($sceProvider) { + $sceProvider.enabled(true); +});