How to pass parameter when I redirect the page in angularjs using ui router?

前端 未结 3 1774
悲哀的现实
悲哀的现实 2020-12-31 07:44

I am trying to pass parameters via the ui-router state.go

However, I am not sure how to pass the parameters. Here are my codes

app.config(function($s         


        
3条回答
  •  春和景丽
    2020-12-31 08:40

    Instead of adding additional param in the url, you could do it on the other way.

    .state('second', {
        url: '/second',
        templateUrl: 'second.html',
        params: {input:null}
    
    })
    

    All other changes would be same with what other answers.

提交回复
热议问题