Function
The property key of the instance to expose from.
Optional
Whether to expose a setter for the property. Defaults to true.
expose
Stage-3 decorator that augments fields, accessors, and methods to expose fields and methods from inner instances.
protected model: TurboModel;@expose("model") public color: string; Copy
protected model: TurboModel;@expose("model") public color: string;
Is equivalent to:
protected model: TurboModel;public get color(): string { return this.model.color;}public set color(value: string) { this.model.color = value;} Copy
protected model: TurboModel;public get color(): string { return this.model.color;}public set color(value: string) { this.model.color = value;}
The property key of the instance to expose from.