diff options
| author | Miško Hevery | 2013-11-10 23:34:12 +0100 |
|---|---|---|
| committer | Peter Bacon Darwin | 2013-11-10 23:27:13 +0000 |
| commit | fb483d56a7d8070f587c1d8b464f70c597c2f514 (patch) | |
| tree | bec63236d2a33fdeeba0dbe2cba48628c9fc1e84 /src/ng/sce.js | |
| parent | c5c75386e47481eb455df704ef554d4eebc52dd4 (diff) | |
| download | angular.js-fb483d56a7d8070f587c1d8b464f70c597c2f514.tar.bz2 | |
docs($sce): ng-bind-html takes an expression `{{}}`
Diffstat (limited to 'src/ng/sce.js')
| -rw-r--r-- | src/ng/sce.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/sce.js b/src/ng/sce.js index 8f231031..b1b571c6 100644 --- a/src/ng/sce.js +++ b/src/ng/sce.js @@ -427,10 +427,10 @@ function $SceDelegateProvider() { * * <pre class="prettyprint"> * <input ng-model="userHtml"> - * <div ng-bind-html="{{userHtml}}"> + * <div ng-bind-html="userHtml"> * </pre> * - * Notice that `ng-bind-html` is bound to `{{userHtml}}` controlled by the user. With SCE + * Notice that `ng-bind-html` is bound to `userHtml` controlled by the user. With SCE * disabled, this application allows the user to render arbitrary HTML into the DIV. * In a more realistic example, one may be rendering user comments, blog articles, etc. via * bindings. (HTML is just one example of a context where rendering user controlled input creates |
