Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. this.$state.go('parent', {params: this.$state.params.PARAMS});
  2.  
  3. Parent state declaration:
  4. export const parentState: Ng2StateDeclaration = {
  5. name: 'parent',
  6. url: '/parent',
  7. views: {
  8. content: {component: ParentComponent}
  9. },
  10. params: {
  11. // How to get CODE param from child to here ??
  12. }
  13. };
  14.  
  15. Child state declaration:
  16. export const childState: Ng2StateDeclaration = {
  17. name: 'parent.child',
  18. url: '/child/:CODE',
  19. redirectTo: 'parent',
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement