From 06b31f56fc7f8e83185dd8fe1a94f558254fafa8 Mon Sep 17 00:00:00 2001 From: Jesper Broni Andersen Date: Tue, 7 Feb 2017 16:01:03 +0100 Subject: [PATCH] angular: Add preAssignBindingsEnabled to ICompileProvider --- angular/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/angular/index.d.ts b/angular/index.d.ts index 73535e9922..099ac2fc27 100644 --- a/angular/index.d.ts +++ b/angular/index.d.ts @@ -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.