From a27b4cf5fd81a6cb6b990017dbe77d3090b0e22d Mon Sep 17 00:00:00 2001 From: gdennie Date: Wed, 2 Oct 2013 15:09:44 -0400 Subject: docs(guide/directive): clarify use of binding to scopes The use of 'angular' as sample text is confusing to the newbie in that they are forced to confirm that the text 'angular' is not a keyword or otherwise referring to a system component. This is changed to a more obvious sample text. The most common form of `ngBind` is moved to the top of the list. Closes #4237 --- docs/content/guide/directive.ngdoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/content/guide/directive.ngdoc') diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 9c418a2c..f052afff 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -27,28 +27,28 @@ attribute only.) -Directives can be invoked in many different ways, but are equivalent in the end result as shown in -the following example. +The following demonstrates the various ways a Directive (ngBind in this case) can be referenced from within a template.
Hello
+ <span ng-bind="name">
<span ng:bind="name">
<span ng_bind="name">
- <span ng-bind="name">
<span data-ng-bind="name">
<span x-ng-bind="name">
it('should show off bindings', function() { - expect(element('div[ng-controller="Ctrl1"] span[ng-bind]').text()).toBe('angular'); + expect(element('div[ng-controller="Ctrl1"] span[ng-bind]').text()) + .toBe('Max Karl Ernst Ludwig Planck (April 23, 1858 – October 4, 1947)'); });
-- cgit v1.2.3