docs(compile/notassign): description for compile/notassign error

Closes #3459
This commit is contained in:
Misko Hevery
2013-08-01 15:39:22 -07:00
committed by Igor Minar
parent 4e76d0469e
commit 78a445fa37
4 changed files with 39 additions and 7 deletions

View File

@@ -2110,7 +2110,7 @@ describe('$compile', function() {
componentScope.ref = 'ignore me';
expect($rootScope.$apply).
toThrow("[$compile:noass] Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!");
toThrow("[$compile:nonassign] Expression ''hello ' + name' used with directive 'myComponent' is non-assignable!");
expect(componentScope.ref).toBe('hello world');
// reset since the exception was rethrown which prevented phase clearing
$rootScope.$$phase = null;
@@ -3240,7 +3240,7 @@ describe('$compile', function() {
};
});
});
inject(function($compile, $rootScope) {
inject(function($compile) {
expect(function() {
element = $compile(
'<div>' +