angular.js - How to get the two parameter values ​​​​of the previous page in AngularJS?
过去多啦不再A梦
过去多啦不再A梦 2017-05-15 17:09:25
0
3
548

Use $routeParams.id; you can only get one, but not the second one

过去多啦不再A梦
过去多啦不再A梦

reply all(3)
某草草

Anyway, you should also post a section of the router's relevant configuration file, and then I can tell you to add a field to the route? The ending can be passed on or not.
23333

'path/:id/:params?'

This is the best way.

The following is a bad way, it can be anything messy like creating a shared service or passing cookie parameters,

習慣沉默

See the parameter passing section of ui-route.

过去多啦不再A梦

If the route is url: '/smart_accounting/invoice/preCertificate/detail/:id/:type',
then get
$stateParams.id
$stateParams.type

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template