\@Prop({ type: String }) value: string; \@Prop({ type: Number }) value: number; \@Prop({ type: Boolean }) value: boolean; \@Prop({ type: Date }) value: Date; \@Prop({ type: CustomObject }) value: CustomObject; \@Prop({ type: [String] }) value: string[]; \@Prop({ enum: EnumClss }) value: EnumClss; \@Prop({ type:[EnumClss] enum: EnumClss }) value: EnumClss; Copy
\@Prop({ type: String }) value: string; \@Prop({ type: Number }) value: number; \@Prop({ type: Boolean }) value: boolean; \@Prop({ type: Date }) value: Date; \@Prop({ type: CustomObject }) value: CustomObject; \@Prop({ type: [String] }) value: string[]; \@Prop({ enum: EnumClss }) value: EnumClss; \@Prop({ type:[EnumClss] enum: EnumClss }) value: EnumClss;
Optional
Examples