Using ngFor. Assuming we use the same data as in the Angular 1.x example, we can declare this.groceries in the class constructor:.
確定! 回上一頁