我正在用Angular 10写一个项目,我不知道为什么,但是通过输入显示的属性不同于在ngFor循环中使用插值显示的相同属性。每次我向customSections数组推送一个新的customSection时,这些值都会开始不同。html部件: <div *ngFor="
let customSection of resume.customSections,正如你所看到的,
据我所知,我有一个组件,可以在其中显示像{{ this }}这样的数据,它工作得很好。现在,我想选择component.ts中的数据。它是一个字符串数组:现在,在我的component.html中,我想用这些字符串作为选项创建一个select<select ngModel="result" ngOptions="value for value in strate
我试图在组件中显示从我的api检索到的值。当API用数据响应时,我的页面正在显示,而我永远不能显示元素列表。你能让我知道如何解决这个问题并在我的html页面中显示这些值吗?TeamInfo>(`/api/${term}`);我在我的组件中调用api。<ng-container *ngFor="let pods of associatedPodNames"></ng
todo.title" /> <select (change)="setPriority($event.target.value)"> this.todo.priority = priority; //This is where the problems is}
问题在函数setPriority中,特别是在