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
"configurations": { | |
"production": { | |
"fileReplacements": [ | |
{ | |
"replace": "src/environments/environment.ts", | |
"with": "src/environments/environment.prod.ts" | |
} | |
], | |
... |
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
"configurations": { | |
"production": { ... }, | |
"staging": { | |
"fileReplacements": [ | |
{ | |
"replace": "src/environments/environment.ts", | |
"with": "src/environments/environment.staging.ts" | |
} | |
] | |
} |
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
<input | |
type="text" | |
(keypress)="onKeyboardEvent($event)"> | |
onKeyboardEvent(evt: KeyboardEvent) { | |
const charCode = (evt.which) ? evt.which : evt.keyCode; | |
if (charCode > 31 && (charCode < 48 || charCode > 57)) { | |
return false; | |
} |
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
ionViewCanEnter(): boolean { | |
if(userIsLoggedIn){ | |
return true; | |
} else { | |
return false; | |
} | |
} |
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
<ion-card *ngFor="let track of tracks"> | |
<img [src]="track.album.images[0].url"/> | |
<ion-card-content> | |
<ion-card-title> | |
{{track.name}} | |
</ion-card-title> | |
<ion-row> | |
<ion-col center> | |
<ion-icon primary name="musical-notes"> | |
</ion-icon> |
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
<ion-card *ngFor="let track of tracks"> | |
<img [src]="track.album.images[0].url"/> | |
<ion-card-content> | |
<ion-card-title> | |
{{track.name}} | |
</ion-card-title> | |
<ion-row> | |
<ion-col center> | |
<ion-icon primary name="musical-notes"> | |
</ion-icon> |
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
<ion-card> | |
<ion-card-header> | |
{{movie.Title}} | |
</ion-card-header> | |
<ion-card-content> | |
{{movie.Plot}} | |
</ion-card-content> | |
<ion-card-header> | |
Details |
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
[ | |
{ | |
"Title": "Avatar", | |
"Year": "2009", | |
"Rated": "PG-13", | |
"Released": "18 Dec 2009", | |
"Runtime": "162 min", | |
"Genre": "Action, Adventure, Fantasy", | |
"Director": "James Cameron", | |
"Writer": "James Cameron", |