mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user