You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
提示的错误信息是
Object is possibly 'undefined'.ngtsc(2532)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Property 'text' does not exist on type 'TitleOption | TitleOption[]'.
Property 'text' does not exist on type 'TitleOption[]'.ngtsc(2339)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Object is possibly 'undefined'.ngtsc(2532)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Property 'text' does not exist on type 'TitleOption | TitleOption[]'.
Property 'text' does not exist on type 'TitleOption[]'.ngtsc(2339)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent
The text was updated successfully, but these errors were encountered:
我在compent里定义了option
chartOption: EChartsOption = {
title: {
text: '123213',
show: true
},....
}
但在html里无法绑定到 title. Text
<input nz-input name="title" [ngModelOptions]="{ standalone: true }" [(ngModel)]="chartOption.title.text" />
提示的错误信息是
Object is possibly 'undefined'.ngtsc(2532)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Property 'text' does not exist on type 'TitleOption | TitleOption[]'.
Property 'text' does not exist on type 'TitleOption[]'.ngtsc(2339)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Object is possibly 'undefined'.ngtsc(2532)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent.
Property 'text' does not exist on type 'TitleOption | TitleOption[]'.
Property 'text' does not exist on type 'TitleOption[]'.ngtsc(2339)
chartedit.component.ts(9, 2): Error occurs in the template of component BICharteditComponent
The text was updated successfully, but these errors were encountered: