In the Edit function, click the edit button to jump to the Edit page and PASS Parameters. How should I write the jump url. There is also how to make editing and publishing use a page together, how should the routing be written in the editing function at this time, click the edit button to jump to the editing page and PASS Parameters, how to write the jump url. And how to make the editing and publishing share a page, how should the route be written at this time?
Reply content:
In the Edit function, click the edit button to jump to the Edit page and PASS Parameters. How should I write the jump url. And how to make the editing and publishing share a page, how should the route be written at this time?
You should understand this.
Learn ui-router-route control
If you do not understand what you mean, write the url as follows: "/a/B/: id"
Or
The parameter accepted on the target page is $ stateProvider. state ('page2', {params: {'data': null }})
Parameter: $ state. go ('page2', {data: 'aaa '});
Or
Accept parameters on the target page: After the Controller injects $ stateParams, you can get 'aaa' through $ stateParams. data'