Skip to content

Commit e1bf4f9

Browse files
dotansimhadarkbasic
authored andcommitted
Step 13.19: Create show picture component
1 parent 5651521 commit e1bf4f9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/pages/messages/show-picture.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component } from '@angular/core';
2+
import { NavParams } from 'ionic-angular';
3+
4+
@Component({
5+
selector: 'show-picture',
6+
templateUrl: 'show-picture.html'
7+
})
8+
export class ShowPictureComponent {
9+
pictureSrc: string;
10+
11+
constructor(private navParams: NavParams) {
12+
this.pictureSrc = this.navParams.get('pictureSrc');
13+
}
14+
}

0 commit comments

Comments
 (0)