diff options
| author | Igor Minar | 2011-06-15 22:31:40 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-06-15 22:31:40 -0700 | 
| commit | b842642b574a2b95c53b791308ed1bf8ff9d304d (patch) | |
| tree | fb26431c5372be74de2105df77e94dea4f198489 /docs/content/cookbook/form.ngdoc | |
| parent | d428c9910e66246c2af46602499acaeaf187d75b (diff) | |
| download | angular.js-b842642b574a2b95c53b791308ed1bf8ff9d304d.tar.bz2 | |
docs - stripping extra new lines
Diffstat (limited to 'docs/content/cookbook/form.ngdoc')
| -rw-r--r-- | docs/content/cookbook/form.ngdoc | 13 | 
1 files changed, 0 insertions, 13 deletions
| diff --git a/docs/content/cookbook/form.ngdoc b/docs/content/cookbook/form.ngdoc index 55aeb4b9..08f8971d 100644 --- a/docs/content/cookbook/form.ngdoc +++ b/docs/content/cookbook/form.ngdoc @@ -3,14 +3,11 @@  @name Cookbook: Form  @description -  A web application's main purpose is to present and gather data. For this reason angular strives  to make both of these operations trivial. This example shows off how you can build a simple form to  allow a user to enter data. - -  <doc:example>   <doc:source>    <script> @@ -26,11 +23,9 @@ allow a user to enter data.    </script>    <div ng:controller="FormController" class="example"> -      <label>Name:</label><br/>      <input type="text" name="user.name" ng:required/> <br/><br/> -      <label>Address:</label><br/>      <input type="text" name="user.address.line1" size="33" ng:required/> <br/>      <input type="text" name="user.address.city" size="12" ng:required/>, @@ -38,7 +33,6 @@ allow a user to enter data.      <input type="text" name="user.address.zip" size="5" ng:required  ng:validate="regexp:zip"/><br/><br/> -      <label>Phone:</label>      [ <a href="" ng:click="user.contacts.$add()">add</a> ]      <div ng:repeat="contact in user.contacts"> @@ -56,7 +50,6 @@ ng:validate="regexp:zip"/><br/><br/>      <pre>user={{user}}</pre>    </div> -   </doc:source>   <doc:scenario>    it('should show debug', function(){ @@ -69,13 +62,11 @@ ng:validate="regexp:zip"/><br/><br/>      expect(binding('user')).toMatch(/you@example.org/);    }); -    it('should remove contact', function(){      using('.example').element('a:contains(X)').click();      expect(binding('user')).not().toMatch(/\(234\) 555\-1212/);    }); -    it('should validate zip', function(){      expect(using('.example').element(':input[name=user.address.zip]').attr('className'))        .not().toMatch(/ng-validation-error/); @@ -84,7 +75,6 @@ ng:validate="regexp:zip"/><br/><br/>        .toMatch(/ng-validation-error/);    }); -    it('should validate state', function(){      expect(using('.example').element(':input[name=user.address.state]').attr('className'))        .not().toMatch(/ng-validation-error/); @@ -96,11 +86,8 @@ ng:validate="regexp:zip"/><br/><br/>  </doc:example> - -  # Things to notice -  * The user data model is initialized {@link api/angular.directive.ng:controller controller} and is  available in    the {@link api/angular.scope scope} with the initial data. | 
