diff options
| author | Misko Hevery | 2011-01-19 15:42:11 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2011-01-24 14:23:51 -0800 | 
| commit | c2f2587a79aeb77aad66f081cf924a79348a698e (patch) | |
| tree | 8f5aa4cc6e7189befb834388b2102d1eda88a975 /docs/angular.formatter.ngdoc | |
| parent | 5d0d34ae72a9ca47f1b2dabda60711ad16ee9313 (diff) | |
| download | angular.js-c2f2587a79aeb77aad66f081cf924a79348a698e.tar.bz2 | |
fixed example rendering, add tests for it.
Diffstat (limited to 'docs/angular.formatter.ngdoc')
| -rw-r--r-- | docs/angular.formatter.ngdoc | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/angular.formatter.ngdoc b/docs/angular.formatter.ngdoc index ba28471f..2f4433cf 100644 --- a/docs/angular.formatter.ngdoc +++ b/docs/angular.formatter.ngdoc @@ -8,13 +8,13 @@ The formatters are responsible for translating user readable text in an input wi  data model stored in an application.  # Writting your own Formatter -Writing your own formatter is easy. Just register a pair of JavaScript functions with  -`angular.formatter`. One function for parsing user input text to the stored form,  +Writing your own formatter is easy. Just register a pair of JavaScript functions with +`angular.formatter`. One function for parsing user input text to the stored form,  and one for formatting the stored data to user-visible text. -Here is an example of a "reverse" formatter: The data is stored in uppercase and in  -reverse, while it is displayed in lower case and non-reversed. User edits are  -automatically parsed into the internal form and data changes are automatically  +Here is an example of a "reverse" formatter: The data is stored in uppercase and in +reverse, while it is displayed in lower case and non-reversed. User edits are +automatically parsed into the internal form and data changes are automatically  formatted to the viewed form.  <pre> @@ -56,11 +56,11 @@ angular.formatter('reverse', {  });  </script> -Formatted:  +Formatted:  <input type="text" name="data" value="angular" ng:format="reverse"/>  <br/> -Stored:  +Stored:  <input type="text" name="data"/><br/>  <pre>{{data}}</pre> @@ -69,7 +69,7 @@ Stored:  it('should store reverse', function(){   expect(element('.doc-example input:first').val()).toEqual('angular');   expect(element('.doc-example input:last').val()).toEqual('RALUGNA'); -  +   this.addFutureAction('change to XYZ', function($window, $document, done){     $document.elements('.doc-example input:last').val('XYZ').trigger('change');     done();  | 
