Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 角度4不';是否更新IE上的列表?_Angular - Fatal编程技术网

Angular 角度4不';是否更新IE上的列表?

Angular 角度4不';是否更新IE上的列表?,angular,Angular,我有一个简单的列表,如: <input type="text" [(ngModel)]="newItem" (click)="addNewItem()"> <ul> <li *ngFor="let item of list">{{item.name}}</li> </ul> 有什么建议吗? 提前谢谢 IE和Edge不是同一个导航器。你说的是哪一个?两者都有?你在IE的控制台中看到任何错误吗?你是在addNewItem中添加对

我有一个简单的列表,如:

<input type="text" [(ngModel)]="newItem" (click)="addNewItem()">

<ul>
    <li *ngFor="let item of list">{{item.name}}</li>
</ul>
有什么建议吗?
提前谢谢

IE和Edge不是同一个导航器。你说的是哪一个?两者都有?你在IE的控制台中看到任何错误吗?你是在addNewItem中添加对象吗?IE实际上。。更新我的question@Mar感谢更新的IE缓存解决方案。我也遇到了同样的问题,在我的服务请求中添加提到的标题也为我解决了这个问题。
this.headers = new Headers({
    'Cache-control': 'no-cache',
    'Pragma': 'no-cache'
})