angular - Angular2 + Ionic2. Model not updating in production build -


i working on application using angular 4.0.2 , ionic 3.6.1 , have run issue our production builds.

when building project in development mode using

ionic cordova run ios 

the application runs , functions fine delays expected running in development mode.

but when using

ionic cordova run ios --prod --release 

the model binding functionality no longer works expected. transparency, add using native services our backend calls , seem leave angular2+ spec ngzone.run used model changes.

the issue happens initial page loaded app.

import { component, oninit, output, eventemitter, ngzone } '@angular/core';  import { loginmodelinterface } './loginmodelinterface';  import { keyboard } '@ionic-native/keyboard';  import { loginviewcomponent} './loginview.component';   @component({     selector: 'logincomponent',     template: `<loginviewcomponent [keyboardsettings]="keyboardsettings">`     providers: [iondigitkeyboard, keyboard],     inputs: ['userservice', 'loginmodel']    ....      preloginsuccess(data) {         this.builduserinfo(data);         this.zone.run(() => {             this.keyboardsettings = this.parsekeyboardsettings(data);         })     } } 

the snippet of code above describes scenario have as possible. basically, logincomponent has child component called loginviewcomponent , has input. once pre login stage completed input changed.

i know console.log commands input changed not reflected in actual component (the keyboard doesn't change behavior).

right looking tips on either debugging issue or solving people have encountered similar problems.

if more details needed provide them.

thank provided.


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -