Error on ionic deeplinking ,
Error: Uncaught (in promise): TypeError: Object(...) is not a function TypeError: Object(...) is not a function at Deeplinks.route (http://localhost:8100/build/vendor.js:94242:126)
Code:
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, private deeplinks: Deeplinks) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
statusBar.styleDefault();
splashScreen.hide();
this.deeplinks.route({
'/': {},
'/reset-password/:Id': MmresetpasswordPage
})
.subscribe(match => {
alert(JSON.stringify(match));
}, nomatch => {
alert(JSON.stringify(nomatch));
});
});