From cffc3cae30481c04505280fe3313cce8ed2d0960 Mon Sep 17 00:00:00 2001 From: Diego Plentz Date: Thu, 24 Apr 2014 21:04:05 -0300 Subject: [PATCH] docs(guide/concepts) updating concepts to reflect the actual example The "A first example: Data binding" section it implies that the required directive is actually doing something, but it isn't. I just removed the parts the refer to the required directive to avoid confusion. --- docs/content/guide/concepts.ngdoc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/content/guide/concepts.ngdoc b/docs/content/guide/concepts.ngdoc index 740c49069403..84da48367359 100644 --- a/docs/content/guide/concepts.ngdoc +++ b/docs/content/guide/concepts.ngdoc @@ -37,10 +37,10 @@ Let's start with input fields for quantity and cost whose values are multiplied
Invoice:
- Quantity: + Quantity:
- Costs: + Costs:
Total: {{qty * cost | currency}} @@ -62,11 +62,8 @@ The first kind of new markup are the so called "{@link direc They apply special behavior to attributes or elements in the HTML. In the example above we use the {@link ng.directive:ngApp `ng-app`} attribute, which is linked to a directive that automatically initializes our application. Angular also defines a directive for the {@link ng.directive:input `input`} -element that adds extra behavior to the element. E.g. it is able to automatically validate that the entered -text is non empty by evaluating the `required` attribute. -The {@link ng.directive:ngModel `ng-model`} directive stores/updates -the value of the input field into/from a variable and shows the validation state of the input field by -adding css classes. In the example we use these css classes to mark an empty input field with a red border. +element that adds extra behavior to the element. The {@link ng.directive:ngModel `ng-model`} directive +stores/updates the value of the input field into/from a variable.
**Custom directives to access the DOM**: In Angular, the only place where an application touches the DOM is