diff options
| author | Misko Hevery | 2011-08-10 13:15:43 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2011-08-12 15:47:47 -0700 | 
| commit | 42062dab34192d2cb9ed66a720c0f791408c61c0 (patch) | |
| tree | ca85b56f12dd0138dbe3d7f1346c4125d64e09a5 /src/filters.js | |
| parent | 1c9fc1e1dec67c8c05f02da1e0853439238c4d8e (diff) | |
| download | angular.js-42062dab34192d2cb9ed66a720c0f791408c61c0.tar.bz2 | |
refactor(scope): remove $flush/$observe ng:eval/ng:eval-order
Diffstat (limited to 'src/filters.js')
| -rw-r--r-- | src/filters.js | 11 | 
1 files changed, 2 insertions, 9 deletions
| diff --git a/src/filters.js b/src/filters.js index 52aafcf3..e423f590 100644 --- a/src/filters.js +++ b/src/filters.js @@ -435,18 +435,11 @@ angularFilter.date = function(date, format) {   * @example:     <doc:example>       <doc:source> -       <input type="text" name="objTxt" value="{a:1, b:[]}" -              ng:eval="obj = $eval(objTxt)"/> -       <pre>{{ obj | json }}</pre> +       <pre>{{ {'name':'value'} | json }}</pre>       </doc:source>       <doc:scenario>         it('should jsonify filtered objects', function() { -         expect(binding('obj | json')).toBe('{\n  "a":1,\n  "b":[]}'); -       }); - -       it('should update', function() { -         input('objTxt').enter('[1, 2, 3]'); -         expect(binding('obj | json')).toBe('[1,2,3]'); +         expect(binding('| json')).toBe('{\n  "name":"value"}');         });       </doc:scenario>     </doc:example> | 
