我使用ngFor let let i = index;,然后将i传递到拼接中,它删除了所有的json元素,只有一个元素。代码的watchingGroup部分很好地拼接。<div class="row" *ngFor="let post of posts;let i = index;">this.posts = this.posts.splice(i, 1);
为什么它不
原始错误:错误:没有为MyAppComponent找到模板
import {Component, View} from 'angular2/core';// Note I've changed Template to View here as I think it is a typo按照邓肯·布斯( Duncan )在这里的