I am new to Angular, Can someone please help me out with this issue here.
export class PersonComponent implements OnInit {
Schools= [];
constructor() {
}
ngOnInit(): void {
this.Schools= [
{Name : "ABD Schoool" , Title : "Colarado"},
{Name : "CC School" , Title : "Texas"}
];
}
}
However, I am getting an error stating 'Type string is not assignable to type never'. What does this mean and how can I solve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…