diff options
| author | Igor Minar | 2012-03-13 23:00:30 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-03-13 23:17:43 -0700 |
| commit | 716b5fd3e24e11986ded2cc381b9fbb77971a1e2 (patch) | |
| tree | ca7964496a3a021a2745d8a13a673791d9602719 /docs/content/guide/dev_guide.overview.ngdoc | |
| parent | 8b8fdddc0b13f90dcc081b7d29a79f1452f2dd7b (diff) | |
| download | angular.js-716b5fd3e24e11986ded2cc381b9fbb77971a1e2.tar.bz2 | |
docs(*): fixing various docs
Diffstat (limited to 'docs/content/guide/dev_guide.overview.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.overview.ngdoc | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/docs/content/guide/dev_guide.overview.ngdoc b/docs/content/guide/dev_guide.overview.ngdoc index b0e9e2f9..4c9c2953 100644 --- a/docs/content/guide/dev_guide.overview.ngdoc +++ b/docs/content/guide/dev_guide.overview.ngdoc @@ -79,12 +79,10 @@ easier a web developer's life can if they're using angular: Try out the Live Preview above, and then let's walk through the example and describe what's going on. -In the `<html>` tag, we add an attribute to let the browser know about the angular namespace. -This ensures angular runs nicely in all major browsers. We also specify that it is an angular -application with the `ng-app` directive. The `ng-app' will cause the angular to {@link -dev_guide.bootstrap auto initialize} your application. +In the `<html>` tag we specify that this is an angular application with the `ng-app` directive. +The `ng-app' will cause the angular to {@link dev_guide.bootstrap auto initialize} your application. - <html ng-ng-app> + <html ng-app> We load the angular using the `<script>` tag: @@ -111,12 +109,12 @@ And finally, the mysterious `{{ double curly braces }}`: Total: {{qty * cost | currency}} -This notation, `{{ _expression_ }}`, is a bit of built-in angular {@link http://localhost:8000/build/docs/api/angular.module.ng.$interpolate -markup}, a shortcut for displaying data to the user. The expression within curly braces gets -transformed by the angular compiler into an angular directive ({@link api/angular.module.ng.$compileProvider.directive.ng-bind -ng-bind}). The expression itself can be a combination of both an expression and a {@link -dev_guide.templates.filters filter}: `{{ expression | filter }}`. Angular provides filters for -formatting display data. +This notation, `{{ _expression_ }}`, is a bit of built-in angular binding markup, a shortcut for +displaying data to the user. The expression within curly braces is monitored and its evaluated value +is updated into the view by angular's template compiler. Alternatively, one could use angular's +{@link api/angular.module.ng.$compileProvider.directive.ng-bind ng-bind}) directive. The expression +itself can be a combination of both an expression and a {@link dev_guide.templates.filters filter}: +`{{ expression | filter }}`. Angular provides filters for formatting display data. In the example above, the expression in double-curly braces directs angular to, "Bind the data we got from the input widgets to the display, multiply them together, and format the resulting number |
