diff options
| author | brettcannon | 2012-07-18 15:55:52 -0300 | 
|---|---|---|
| committer | Misko Hevery | 2012-08-30 22:09:16 -0700 | 
| commit | 1b34c6d558ab2c138d9e432553f4aebfdeeb5084 (patch) | |
| tree | 869c3ccb887213c802a3c76dfd5d7683b97a84d0 /docs/content/tutorial | |
| parent | a62c7b8b4eaba2979e19c3b0438d67fcdc5f9e1a (diff) | |
| download | angular.js-1b34c6d558ab2c138d9e432553f4aebfdeeb5084.tar.bz2 | |
doc(misc) Mention how attribute names map to directive names.
Diffstat (limited to 'docs/content/tutorial')
| -rw-r--r-- | docs/content/tutorial/step_00.ngdoc | 9 | ||||
| -rw-r--r-- | docs/content/tutorial/step_06.ngdoc | 2 | 
2 files changed, 6 insertions, 5 deletions
| diff --git a/docs/content/tutorial/step_00.ngdoc b/docs/content/tutorial/step_00.ngdoc index 231e873a..1e3c61a0 100644 --- a/docs/content/tutorial/step_00.ngdoc +++ b/docs/content/tutorial/step_00.ngdoc @@ -173,10 +173,11 @@ __`app/index.html`:__            <html ng-app> -  The `ng-app` attribute is represents an Angular directive used to flag an element which Angular -  should consider to be the root element of our application. This gives application developers the -  freedom to tell Angular if the entire html page or only a portion of it should be treated as the -  Angular application. +  The `ng-app` attribute is represents an Angular directive (named `ngApp`; Angular uses +  `name-with-dashes` for attribute names and `camelCase` for the corresponding directive name) +  used to flag an element which Angular should consider to be the root element of our application. +  This gives application developers the freedom to tell Angular if the entire html page or only a +  portion of it should be treated as the Angular application.  * AngularJS script tag: diff --git a/docs/content/tutorial/step_06.ngdoc b/docs/content/tutorial/step_06.ngdoc index 84c97bab..0df5681b 100644 --- a/docs/content/tutorial/step_06.ngdoc +++ b/docs/content/tutorial/step_06.ngdoc @@ -65,7 +65,7 @@ api/ng.directive:ngSrc ngSrc} directive. That directive prevents the  browser from treating the angular `{{ expression }}` markup literally, and initiating a request to  invalid url `http://localhost:8000/app/{{phone.imageUrl}}`, which it would have done if we had only  specified an attribute binding in a regular `src` attribute (`<img  class="diagram" src="{{phone.imageUrl}}">`). -Using `ngSrc` (`ng-src`) prevents the browser from making an http request to an invalid location. +Using the `ngSrc` directive prevents the browser from making an http request to an invalid location.  ## Test | 
