diff options
| author | Misko Hevery | 2012-04-28 22:45:28 -0700 |
|---|---|---|
| committer | Misko Hevery | 2012-05-04 16:12:17 -0700 |
| commit | 8e2675029f5ca404a7c649cc161df3ea642d941f (patch) | |
| tree | 6668342fb2c57360e06c9e36bfd4e5e6e08a52f5 /docs/content/guide/dev_guide.forms.ngdoc | |
| parent | d0159454dfa2e1cee4dd4ab7a41c2fcf9e121a64 (diff) | |
| download | angular.js-8e2675029f5ca404a7c649cc161df3ea642d941f.tar.bz2 | |
chore(docs): re-skin main documentation
Diffstat (limited to 'docs/content/guide/dev_guide.forms.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.forms.ngdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/guide/dev_guide.forms.ngdoc b/docs/content/guide/dev_guide.forms.ngdoc index fe668ddf..6621e231 100644 --- a/docs/content/guide/dev_guide.forms.ngdoc +++ b/docs/content/guide/dev_guide.forms.ngdoc @@ -31,7 +31,7 @@ In addition it provides {@link api/angular.module.ng.$compileProvider.directive. <pre>master = {{master | json}}</pre> </div> -<script type="text/javascript"> +<script> function Controller($scope) { $scope.master= {}; @@ -91,7 +91,7 @@ This ensures that the user is not distracted with an error until after interacti } </style> -<script type="text/javascript"> +<script> function Controller($scope) { $scope.master= {}; @@ -152,7 +152,7 @@ This allows us to extend the above example with these features: </form> </div> -<script type="text/javascript"> +<script> function Controller($scope) { $scope.master= {}; @@ -227,7 +227,7 @@ In the following example we create two directives. </form> </div> -<script type="text/javascript"> +<script> var app = angular.module('form-example1', []); var INTEGER_REGEXP = /^\-?\d*$/; @@ -281,13 +281,13 @@ In order for custom control to work with `ngModel` and to achieve two-way data-b - implement `render` method, which is responsible for rendering the data after it passed the {@link api/angular.module.ng.$compileProvider.directive.ngModel.NgModelController#$formatters NgModelController#$formatters}, - call `$setViewValue` method, whenever the user interacts with the control and model needs to be updated. This is usually done inside a DOM Event listener. -See {@link api/angular.module.ng.$compileProvider.directive $compileProvider.directive} for more info. +See {@link guide/directive $compileProvider.directive} for more info. The following example shows how to add two-way data-binding to contentEditable elements. <doc:example module="form-example2"> <doc:source> -<script type="text/javascript"> +<script> angular.module('form-example2', []).directive('contenteditable', function() { return { require: 'ngModel', |
