21 lines
397 B
TypeScript
21 lines
397 B
TypeScript
import { Component } from '@angular/core';
|
|
import { NavController, NavParams } from 'ionic-angular';
|
|
|
|
@Component({
|
|
selector: 'page-lightbox',
|
|
templateUrl: 'lightbox.html'
|
|
})
|
|
|
|
export class LightboxPage {
|
|
|
|
image: string;
|
|
|
|
constructor(public navCtrl: NavController, private _params: NavParams) {
|
|
this.image = this._params.get('image');
|
|
}
|
|
|
|
close(event) {
|
|
this.navCtrl.pop();
|
|
}
|
|
}
|