0
Ich verwende ein Ionic 2 Popover, um ein Bild anzuzeigen. Das Bild wird jedoch nicht in der modal
angezeigt.html Bildelement zeigt kein Bild
Ich habe den folgenden Code. Wie bekomme ich es, um das Bild anzuzeigen?
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');
}
}
Und es zeigt dies: