diff options
| author | Misko Hevery | 2010-04-12 14:28:15 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-12 14:28:15 -0700 |
| commit | 2637d4e90c8a43436d21a4b9e790b00ae461c438 (patch) | |
| tree | a952ccff0f34595a6624a01e840df823665c09a9 /test/directivesSpec.js | |
| parent | 843bd355d25ebf2369aec79f98cb6704d38497e9 (diff) | |
| download | angular.js-2637d4e90c8a43436d21a4b9e790b00ae461c438.tar.bz2 | |
removed Meta and allowed binding of HTML
Diffstat (limited to 'test/directivesSpec.js')
| -rw-r--r-- | test/directivesSpec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/directivesSpec.js b/test/directivesSpec.js index 1def9584..300602fe 100644 --- a/test/directivesSpec.js +++ b/test/directivesSpec.js @@ -37,6 +37,13 @@ describe("directives", function(){ expect(element.text()).toEqual('misko'); }); + it('should ng-bind html', function() { + var scope = compile('<div ng-bind="html|html"></div>'); + scope.html = '<div>hello</div>'; + scope.$eval(); + expect(element.html()).toEqual('<div>hello</div>'); + }); + it('should ng-bind-template', function() { var scope = compile('<div ng-bind-template="Hello {{name}}!"></div>'); scope.$set('name', 'Misko'); |
