mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
add angular.element(callback) (#21011)
see document for `ready()` method at https://docs.angularjs.org/api/ng/function/angular.element#angularjs-s-jqlite
This commit is contained in:
@@ -644,6 +644,9 @@ isolateScope = element.find('div').isolateScope();
|
||||
isolateScope = element.children().isolateScope();
|
||||
let element2 = angular.element(element);
|
||||
let elementArray = angular.element(document.querySelectorAll('div'));
|
||||
let elementReadyFn = angular.element(() => {
|
||||
console.log('ready');
|
||||
});
|
||||
|
||||
// $timeout signature tests
|
||||
namespace TestTimeout {
|
||||
|
||||
2
types/angular/jqlite.d.ts
vendored
2
types/angular/jqlite.d.ts
vendored
@@ -684,7 +684,7 @@ interface JQuery {
|
||||
}
|
||||
|
||||
interface JQueryStatic {
|
||||
(element: string | Element | Document | JQuery | ArrayLike<Element>): JQLite;
|
||||
(element: string | Element | Document | JQuery | ArrayLike<Element> | (() => void)): JQLite;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user