Skip to content

Commit c9779a4

Browse files
NicolasNicolas
authored andcommitted
Fix White Freeze
1 parent 799e14f commit c9779a4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

app/app.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, enableProdMode} from '@angular/core';
1+
import {Component} from '@angular/core';
22
import {Platform, ionicBootstrap} from 'ionic-angular';
33
import {StatusBar} from 'ionic-native';
44
import {HomePage} from './pages/home/home';
@@ -15,12 +15,6 @@ export class MyApp {
1515
constructor(private platform: Platform) {
1616
this.rootPage = HomePage;
1717

18-
if (platform.is('ios')
19-
|| platform.is('android')
20-
|| platform.is('windows')) {
21-
enableProdMode();
22-
}
23-
2418
platform.ready().then(() => {
2519
// Okay, so the platform is ready and our plugins are available.
2620
// Here you can do any higher level native things you might need.

app/pages/details/details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>Additifs</h2>
4343
<ion-card-content>
4444
<ion-card-title>Ingrédients</ion-card-title>
4545
<b>{{product.generic_name || product.product_name || product.code}}</b> <br>
46-
{{product.ingredients_text}}
46+
<p [innerHTML]="parseIngredients(product.ingredients_text)"></p>
4747
</ion-card-content>
4848
</ion-card>
4949
</ion-content>

0 commit comments

Comments
 (0)