From c41813a3b675e4a4b69eca018f09c500176a2ea5 Mon Sep 17 00:00:00 2001 From: gdennie Date: Wed, 2 Oct 2013 15:09:44 -0400 Subject: [PATCH] (1) Clarified directive e2e test result and (2) template referencing examples In the first case, the use of 'angular' as sample text is confusing to the newbie (of which I am) in that they are force to confirm that the text 'angular' is not a keyword or otherwise referring to a system component. It is useful to ensure that sample text are obviously sample text. In the second case, the introduction to the list of ways of referring to directives from the template was in obvious need to repair. I have also moved the most common example to the top of the list in companionship with the use close by of ng-model. --- docs/content/guide/directive.ngdoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 2fcaed604431..4b23a06742f6 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)'); });