mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
angular: Add preAssignBindingsEnabled to ICompileProvider
This commit is contained in:
10
angular/index.d.ts
vendored
10
angular/index.d.ts
vendored
@@ -1254,6 +1254,16 @@ declare namespace angular {
|
||||
debugInfoEnabled(): boolean;
|
||||
debugInfoEnabled(enabled: boolean): ICompileProvider;
|
||||
|
||||
/**
|
||||
* Call this method to enable/disable whether directive controllers are assigned bindings before calling the controller's constructor.
|
||||
* If enabled (true), the compiler assigns the value of each of the bindings to the properties of the controller object before the constructor of this object is called.
|
||||
* If disabled (false), the compiler calls the constructor first before assigning bindings.
|
||||
* Defaults to false.
|
||||
* See: https://docs.angularjs.org/api/ng/provider/$compileProvider#preAssignBindingsEnabled
|
||||
*/
|
||||
preAssignBindingsEnabled(): boolean;
|
||||
preAssignBindingsEnabled(enabled: boolean): ICompileProvider;
|
||||
|
||||
/**
|
||||
* Sets the number of times $onChanges hooks can trigger new changes before giving up and assuming that the model is unstable.
|
||||
* Increasing the TTL could have performance implications, so you should not change it without proper justification.
|
||||
|
||||
Reference in New Issue
Block a user