mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +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:
1 parent
bd8293d2a5
commit
01912ae5e7
2 files changed
+40
-1
No files matched your search
@@ -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