Skip to content

Commit

Permalink
fix(navigation): fallback to name if component does not exist on segment
Browse files Browse the repository at this point in the history
  • Loading branch information
danbucholtz committed Jun 20, 2017
1 parent 1beef75 commit 30f69c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/deep-linker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 30f69c8

Please sign in to comment.