diff options
| author | Narretz | 2014-03-03 22:25:53 +0100 |
|---|---|---|
| committer | Igor Minar | 2014-03-10 02:14:50 -0700 |
| commit | 7833ce0a6e9af904979f24828a4ad5990813d089 (patch) | |
| tree | 5a3e74bc2ba546f3da5d3c33266469b66f0fcaca /docs | |
| parent | 47ab8df455df1f1391b760e1fbcc5c21645512b8 (diff) | |
| download | angular.js-7833ce0a6e9af904979f24828a4ad5990813d089.tar.bz2 | |
docs(guide/forms): remove unnecessary controller reference
the controller reference was breaking the custom validation example
Closes #6525
Closes #6533
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/guide/forms.ngdoc | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/docs/content/guide/forms.ngdoc b/docs/content/guide/forms.ngdoc index 0b91fc61..0a0eed47 100644 --- a/docs/content/guide/forms.ngdoc +++ b/docs/content/guide/forms.ngdoc @@ -211,26 +211,24 @@ In the following example we create two directives. <example module="form-example1"> <file name="index.html"> - <div ng-controller="Controller"> - <form name="form" class="css-form" novalidate> - <div> - Size (integer 0 - 10): - <input type="number" ng-model="size" name="size" - min="0" max="10" integer />{{size}}<br /> - <span ng-show="form.size.$error.integer">This is not valid integer!</span> - <span ng-show="form.size.$error.min || form.size.$error.max"> - The value must be in range 0 to 10!</span> - </div> - - <div> - Length (float): - <input type="text" ng-model="length" name="length" smart-float /> - {{length}}<br /> - <span ng-show="form.length.$error.float"> - This is not a valid float number!</span> - </div> - </form> - </div> + <form name="form" class="css-form" novalidate> + <div> + Size (integer 0 - 10): + <input type="number" ng-model="size" name="size" + min="0" max="10" integer />{{size}}<br /> + <span ng-show="form.size.$error.integer">This is not valid integer!</span> + <span ng-show="form.size.$error.min || form.size.$error.max"> + The value must be in range 0 to 10!</span> + </div> + + <div> + Length (float): + <input type="text" ng-model="length" name="length" smart-float /> + {{length}}<br /> + <span ng-show="form.length.$error.float"> + This is not a valid float number!</span> + </div> + </form> </file> <file name="script.js"> |
