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

Detailed explanation of angular url parameter passing example

零下一度
零下一度Original
2017-06-25 09:14:471245browse

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
};

3. Page B gets the value of parameter operation

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

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!

Statement:
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