From 93132b96bf149bcd53c9ae86b8115a522afc4119 Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Tue, 15 Oct 2013 09:48:32 +0200 Subject: docs(ngBindHtml): add example Closes #4427 --- src/ng/directive/ngBind.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src') diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 82ff505a..2ba50928 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -136,6 +136,29 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) { * * @element ANY * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate. + * + * @example + * Try it here: enter text in text box and watch the greeting change. + + + +
+

+
+
+ + it('should check ng-bind-html', function() { + expect(using('.doc-example-live').binding('myHTML')). + toBe('I am an HTMLstring with links! and other stuff'); + }); + +
*/ var ngBindHtmlDirective = ['$sce', '$parse', function($sce, $parse) { return function(scope, element, attr) { -- cgit v1.2.3