Skip to content

Commit 0e4c029

Browse files
tommyangelobullgare
authored andcommitted
docs(ngBindHtml): explain that angular-sanitize.js is needed to depend on ngSanitize
Added comment. You need to include angular-sanitize.js otherwise you cant use ngSanitize! Closes angular#9400
1 parent 642742c commit 0e4c029

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ng/directive/ngBind.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate
145145
* element in a secure way. By default, the innerHTML-ed content will be sanitized using the {@link
146146
* ngSanitize.$sanitize $sanitize} service. To utilize this functionality, ensure that `$sanitize`
147147
* is available, for example, by including {@link ngSanitize} in your module's dependencies (not in
148-
* core Angular.) You may also bypass sanitization for values you know are safe. To do so, bind to
148+
* core Angular). In order to use {@link ngSanitize} in your module's dependencies, you need to
149+
* include "angular-sanitize.js" in your application.
150+
*
151+
* You may also bypass sanitization for values you know are safe. To do so, bind to
149152
* an explicitly trusted value via {@link ng.$sce#trustAsHtml $sce.trustAsHtml}. See the example
150153
* under {@link ng.$sce#Example Strict Contextual Escaping (SCE)}.
151154
*

0 commit comments

Comments
 (0)