내 응용 프로그램 TS 파일에 개체 배열이 있습니다. 저장소에서 가져 오는 개체로 배열을 채 웁니다. 내 html 파일에ionic 2에서 객체 배열을 반복하는 방법은 무엇입니까?
import { Component, ViewChild } from '@angular/core';
import { Nav, Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { Dbservice } from '../providers/dbservice';
import { Home } from '../pages/page1/page1';
import { Setup } from '../pages/frameSetup/setup';
export class Home {
deviceObj = [];
constructor(){
this.deviceObj.push(otherObject);
}
}
나는 배열에보고 데이터를 표시 할, 그러나 나는이 작업을 수행 할 때 오류 메시지가 여기에
내 HTML 파일의 코드가 얻을.
polyfills.js:3 Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'ngforOf' since it isn't a known property of 'ion-col'. 1. If 'ion-col' is an Angular component and it has 'ngforOf' input, then verify that it is part of this module. 2. If 'ion-col' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.
ngFor. 각도 1을 2로 변환하려고합니다. 문법에 무엇이 빠져 있습니까? 도움을 주셔서 감사합니다 – Ennio