Ionic-framework: [BUG]RC4 When set the opt {dismissOnPageChange:true} to LoadingController has An ERROR

Created on 16 Dec 2016  路  10Comments  路  Source: ionic-team/ionic-framework

Ionic version: (check one with "x")
[ ] 1.x
[X ] 2.x
Code:-------------------------------------------------------------------
doLoad() {
let loading = this.loadingCtrl.create({
content: 'loading...',
dismissOnPageChange:true,//Error source
duration: 15000
});
loading.present();
}
ERROR:-------------------------------------------------------------------------------------------
Error: Uncaught (in promise): false
at s (http://localhost:8100/build/polyfills.js:3:4211)
at s (http://localhost:8100/build/polyfills.js:3:4034)
at http://localhost:8100/build/polyfills.js:3:4574
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723)
at Object.NgZone.forkInnerZoneWithAngularBehavior.inner.inner.fork.onInvokeTask (http://localhost:8100/build/main.js:75544:37)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659)
at e.runTask (http://localhost:8100/build/polyfills.js:3:7083)
at i (http://localhost:8100/build/polyfills.js:3:3671)
at HTMLElement.a.invoke (http://localhost:8100/build/polyfills.js:3:10876)


Ionic Framework: 2.0.0-rc.4
Ionic Native: 2.2.11
Ionic App Scripts: 0.0.47
Angular Core: 2.2.1
Angular Compiler CLI: 2.2.1
Node: 6.9.1
OS Platform: Windows 8.1
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36

All 10 comments

The problem I鈥檝e just run into.

@fssgh How did you find source of the error from that stack trace?? I have had the same error, but I was not able to find the source of it.

@kesozjura I guess by his or her adding a control group.

Had the same error too, after updating to RC4

Same error, even without setting dismissOnPageChange:true option. Breaks my app on the device, browser keeps working.

any ideas how to fix this?

@iliagerman I don't know ! Do not use {dismissOnPageChange:true} temporarily

same issue with Toast component with dismissOnPageChange: true since RC4

Hello all! Thanks for opening an issue with us. Happy to announce that this was part of the rc5 milestone and has already been fixed. You can check out this issue https://github.com/driftyco/ionic/issues/9589 for more info on it and a link to the fix.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings