Hi everyone!
I'm trying to create a custom navigation bar with ion-segment and ion-menu directives (app/components/navigation/top-navbar)
For both ion-segment and ion-menu navigation I use the same openPage(name) method.
Home and settings pages both use top-navbar directive. Sign-in and no-navbar pages not included top-navbar.
Dependencies:
{
"angular2": "2.0.0-beta.6",
"es6-promise": "3.0.2",
"es6-shim": "0.33.13",
"ionic-framework": "2.0.0-beta.0",
"ionicons": "3.0.0-alpha.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.0",
"zone.js": "0.5.14"
}
Repository with code example https://github.com/EugeneSnihovsky/ionic2-for-errors
Errors
When I try to navigate to settings page from both ion-menu and ion-segment - I receive error
EXCEPTION: Unexpected directive value 'undefined' on the View of component 'SettingsPage'
Stacktrace you can see on this screenshot.When I try to navigate to page without navbar (signInPage, noNavbarPage) from ion-menu component - all ok. But if I try to navigate with ion-segment - I receive error
EXCEPTION: Attempt to use a dehydrated detector: TopNavBarComponent_0 -> select
Stacktrace you can see on this screenshot
Any idea why this happen? Thanks in advance.