fix(navigation): fallback to name if component does not exist on segment

This commit is contained in:
Dan Bucholtz
2017-06-20 14:51:38 -05:00
parent 1beef75c80
commit 30f69c8a16

View File

@@ -428,7 +428,7 @@ export function _loadViewForSegment(navContainer: NavigationContainer, segment:
}
// ok, so they must be pushing a new view to the stack
// since we didn't find this same component already in the stack
return navController.push(segment.component, segment.data, {
return navController.push(segment.component || segment.name, segment.data, {
id: segment.id, animate: false, updateUrl: false
}, done);
}