Fixed failed assignments of form abj[0].name=value

Closes #169
This commit is contained in:
Misko Hevery
2010-12-07 11:39:59 -08:00
parent 81d10e819e
commit fa722447f8
5 changed files with 51 additions and 23 deletions

View File

@@ -41,6 +41,13 @@ describe("widget", function(){
expect(scope.$get('name')).toEqual('Kai');
expect(scope.$get('count')).toEqual(2);
});
it('should allow complex refernce binding', function(){
compile('<div ng:init="obj={abc:{}}">'+
'<input type="Text" name="obj[\'abc\'].name" value="Misko""/>'+
'</div>');
expect(scope.obj['abc'].name).toEqual('Misko');
});
describe("ng:format", function(){