mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-16 22:30:36 +08:00
The angular.getTestability method requires an element parameter to determine which Angular application to use. Currently, if the element provided is undefined or outside of an Angular app, the error message is 'cannot read property get of undefined'. Improving to a more relevant error message.
10 lines
362 B
Plaintext
10 lines
362 B
Plaintext
@ngdoc error
|
|
@name ng:test
|
|
@fullName Testability Not Found
|
|
@description
|
|
|
|
Angular's testability helper, getTestability, requires a root element to be
|
|
passed in. This helps differentiate between different Angular apps on the same
|
|
page. This error is thrown when no injector is found for root element. It is
|
|
often because the root element is outside of the ng-app.
|