0
画像を表示するためにIonic 2のポップオーバーを使用しています。ただし、画像はmodal
に表示されません。html画像要素が画像を表示していません
私は以下のコードを持っています。イメージを表示するにはどうしたらいいですか?
import { Component } from '@angular/core';
import { NavParams } from 'ionic-angular';
@Component({
template: `
<ion-content padding id="image-popover">
<ion-list>
<ion-row>
<ion-col>
<center>
<img class="item-stable" src="{{image}} height="75" width="75""/>
<p>{{text}}</p>
</center>
</ion-col>
</ion-row>
</ion-list>
</ion-content>
`
})
export class ImagePopOverPage {
private image: string = null;
private text: string = null;
constructor(private navParams: NavParams) {
this.image = navParams.get('image');
this.text = navParams.get('text');
}
}
そしてそれは、この表示されます。