3列の反応性グリッドグリッドを作成したいと思います。私はIonic2で初心者ですとエラーを理解することはできませんよionic2:ギャラリーグリッドの作成
Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with * ("
<ion-grid>
<ion-row *ngFor="let image of images; let i = index;" [ERROR ->]*ngIf="{{i % 3 === 0}}">
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i < images.le"): ng:///AppModule/[email protected]:62
TypeError: Cannot read property 'toUpperCase' of undefined ("
<ion-grid>
<ion-row *ngFor="let image of images; let i = index;" [ERROR ->]*ngIf="{{i % 3 === 0}}">
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i < images.le"): ng:///AppModule/[email protected]:62
Can't bind to '*ngIf' since it isn't a known property of 'ion-row'.
1. If 'ion-row' is an Angular component and it has '*ngIf' input, then verify that it is part of this module.
2. If 'ion-row' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
<ion-grid>
<ion-row *ngFor="let image of images; let i = index;" [ERROR ->]*ngIf="{{i % 3 === 0}}">
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i < images.le"): ng:///AppModule/[email protected]:62
Parser Error: Unexpected token {, expected identifier, keyword, or string at column 2 in [{{i % 3 === 0}}] in ng:///AppModule/[email protected]:62 ("ow *ngFor="let image of images; let i = index;" *ngIf="{{i % 3 === 0}}">
<ion-col col-4 [ERROR ->](click)="openPhoto(image)" *ngIf="{{i < images.length}}">
<img [src]="images[i].url" "): ng:///AppModule/[email protected]:27
Parser Error: Missing expected : at column 14 in [{{i % 3 === 0}}] in ng:///AppModule/[email protected]:62 ("ow *ngFor="let image of images; let i = index;" *ngIf="{{i % 3 === 0}}">
<ion-col col-4 [ERROR ->](click)="openPhoto(image)" *ngIf="{{i < images.length}}">
<img [src]="images[i].url" "): ng:///AppModule/[email protected]:27
Parser Error: Unexpected token } at column 14 in [{{i % 3 === 0}}] in ng:///AppModule/[email protected]:62 ("ow *ngFor="let image of images; let i = index;" *ngIf="{{i % 3 === 0}}">
:以下のように
<ion-grid>
<ion-row *ngFor="let image of images; let i = index;" *ngIf="{{i % 3 === 0}}">
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i < images.length}}">
<img [src]="images[i].url" />
</ion-col>
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i+1 < images.length}}">
<img [src]="images[i+1].url" />
</ion-col>
<ion-col col-4 (click)="openPhoto(image)" *ngIf="{{i+2 < images.length}}">
<img [src]="images[i+2].url" />
</ion-col>
</ion-row>
</ion-grid>
しかし、その上映エラー:私はコードの下での画像の配列を反復処理しています。誰もこれで私を助けることができますか?