Parameters for states without URLs in ui-router for AngularJS

前端 未结 3 1673
梦谈多话
梦谈多话 2020-12-28 12:31

I am using ui-router to represent states in my AngularJS app. In it I\'d like to change the state without changing the URL (basically a \"detail view\" is updated but this s

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-28 13:08

    Just an additional information for new comers to this post:

    Declaration of params in a state definition has changed to params: { id: {} } from params: ['id']

    So be aware :)

    Source: http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$stateProvider

提交回复
热议问题