Currently, if the input property is defined using the setter/getter, no default value is available in the docs. For each such input property, we should add a @default annotation, indicating the default value of the related private property. Modification of the generator is also required to retrieve the default value correctly.
E.g.
/**
* Sample input value.
+ * @default 'Some random sample value'
* @group Props
*/
@Input() set value(value: string) {
this._value = value;
}
get value(): string {
return this._value;
}
private _value = 'Some random sample value';
Currently, if the input property is defined using the setter/getter, no default value is available in the docs. For each such input property, we should add a
@default
annotation, indicating the default value of the related private property. Modification of the generator is also required to retrieve the default value correctly.E.g.