Clear Angularjs state.go parameters

前端 未结 1 1525
傲寒
傲寒 2021-01-17 03:17

I am working on angularjs app. Its like CRUD app. Below is the app structure

Home (List)        => \"/#!/\"
--- Details page   => \"/#!/home/details/-K         


        
相关标签:
1条回答
  • 2021-01-17 04:07

    If you are using ui-sref then threre you can also provide the state params like ui-sref="details({msg: ''})" or if you want to clear the state params, when you are transitioning into current state you can mention $state.go('.', {msg: undefined} );

    0 讨论(0)
提交回复
热议问题