Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Step 13.19: Create show picture component
- Loading branch information
1 parent
5651521
commit e1bf4f9
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component } from '@angular/core'; | ||
import { NavParams } from 'ionic-angular'; | ||
|
||
@Component({ | ||
selector: 'show-picture', | ||
templateUrl: 'show-picture.html' | ||
}) | ||
export class ShowPictureComponent { | ||
pictureSrc: string; | ||
|
||
constructor(private navParams: NavParams) { | ||
this.pictureSrc = this.navParams.get('pictureSrc'); | ||
} | ||
} |