Optional
The key name of the controller in the MVC instance (if any). By default, it is inferred from the name of the field. If the field is named somethingController, the key name will be something.
somethingController
something
Stage-3 field decorator for MVC structure. It reduces code by turning the decorated field into a fetched controller.
@controller() protected textController: TurboController; Copy
@controller() protected textController: TurboController;
Is equivalent to:
protected get textController(): TurboController { if (this.mvc instanceof Mvc) return this.mvc.getController("text"); if (typeof this.getController === "function") return this.getController("text");} Copy
protected get textController(): TurboController { if (this.mvc instanceof Mvc) return this.mvc.getController("text"); if (typeof this.getController === "function") return this.getController("text");}
The key name of the controller in the MVC instance (if any). By default, it is inferred from the name of the field. If the field is named
somethingController, the key name will besomething.