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