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