Home > Web Front-end > JS Tutorial > Detailed explanation of angular url parameter passing example

Detailed explanation of angular url parameter passing example

零下一度
Release: 2017-06-25 09:14:47
Original
1314 people have browsed it

1. Configure the parameter operation in the route

2. Bring the parameters when page A jumps

$scope.goPage = function (op) {
     $state.go("app.productConfigadd",{"operation":op});//注入$state
};
Copy after login

3. Page B gets the value of parameter operation

$stateParams.operation  //注入$stateParams获取参数operation的值
Copy after login

The above is the detailed content of Detailed explanation of angular url parameter passing example. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template