add support for angular.element

angular.element augments the JQuery object for the given element with
angular specific methods like e.g. access for the scope.
This commit is contained in:
Elmar Athmer
2013-08-30 18:01:32 +02:00
parent bd8293d2a5
commit 01912ae5e7
2 changed files with 40 additions and 1 deletions

View File

@@ -210,3 +210,10 @@ foo.then((x) => {
// x is infered to be a number, which is the resolved value of a promise
x.toFixed();
});
// angular.element() tests
var element = angular.element("div.myApp");
var scope: ng.IScope = element.scope();