@@ -578,7 +578,7 @@ function $SceDelegateProvider() {
578
578
*
579
579
* <example module="mySceApp" deps="angular-sanitize.js">
580
580
* <file name="index.html">
581
- * <div ng-controller="myAppController as myCtrl">
581
+ * <div ng-controller="AppController as myCtrl">
582
582
* <i ng-bind-html="myCtrl.explicitlyTrustedHtml" id="explicitlyTrustedHtml"></i><br><br>
583
583
* <b>User comments</b><br>
584
584
* By default, HTML that isn't explicitly trusted (e.g. Alice's comment) is sanitized when
@@ -595,17 +595,17 @@ function $SceDelegateProvider() {
595
595
* </file>
596
596
*
597
597
* <file name="script.js">
598
- * var mySceApp = angular.module('mySceApp', ['ngSanitize']);
599
- *
600
- * mySceApp.controller("myAppController", function myAppController ($http, $templateCache, $sce) {
601
- * var self = this;
602
- * $http.get("test_data.json", {cache: $templateCache}).success(function(userComments) {
603
- * self.userComments = userComments;
604
- * });
605
- * self.explicitlyTrustedHtml = $sce.trustAsHtml(
606
- * '<span onmouseover="this.textContent="Explicitly trusted HTML bypasses ' +
607
- * 'sanitization."">Hover over this text.</span>');
608
- * } );
598
+ * angular.module('mySceApp', ['ngSanitize'])
599
+ * .controller('AppController', ['$http', '$templateCache', '$sce',
600
+ * function ($http, $templateCache, $sce) {
601
+ * var self = this;
602
+ * $http.get("test_data.json", {cache: $templateCache}).success(function(userComments) {
603
+ * self.userComments = userComments;
604
+ * });
605
+ * self.explicitlyTrustedHtml = $sce.trustAsHtml(
606
+ * '<span onmouseover="this.textContent="Explicitly trusted HTML bypasses ' +
607
+ * 'sanitization."">Hover over this text.</span>');
608
+ * }] );
609
609
* </file>
610
610
*
611
611
* <file name="test_data.json">
0 commit comments