How to send object from 1 $state into another $state with ui-router

后端 未结 2 2091
不思量自难忘°
不思量自难忘° 2021-01-20 05:29

https://plnkr.co/edit/nqyBTcBgBimjkrpf2oYo?p=preview

Expected

After Login Selecting a Ticker button should make the Tags module display the matc

2条回答
  •  自闭症患者
    2021-01-20 05:59

    There is the updated plunker

    Namely we have to set a tags state as a child of container one

      const tags = {
        // here we use parent as a placeholder for our child state
        parent: 'container',
        name: 'tags',
        url: '/tags',
    

    also, the container state now in template has a target

    And finally - tags stat has as a part of its template the tags-module

    template: '

    Tags State

    ',

    Check it here and also to get more understanding about nesting, maybe check this:

    • Nested states or views for layout with leftbar in ui-router?

提交回复
热议问题