Added locals to $evalAsync (#16725)

* Added locals to $evalAsync

See https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$evalAsync

* Changed the return type of the expression inside $evalAsync
This commit is contained in:
Cosmin Ababei
2017-06-02 18:03:52 +03:00
committed by Andy
parent 1d18924b49
commit 7ce18dce88

View File

@@ -487,8 +487,8 @@ declare namespace angular {
$eval(expression: (scope: IScope) => any, locals?: Object): any;
$evalAsync(): void;
$evalAsync(expression: string): void;
$evalAsync(expression: (scope: IScope) => any): void;
$evalAsync(expression: string, locals?: Object): void;
$evalAsync(expression: (scope: IScope) => void, locals?: Object): void;
// Defaults to false by the implementation checking strategy
$new(isolate?: boolean, parent?: IScope): IScope;