basic usage
|
|
routeParams
|
|
temp3.html1234do suma: <input type="text" ng-model='a'> <br>b: <input type="text" ng-model='b'> <br><button ng-click="dosum()">dosum</button>
$route
- $route.reload();
- $route.updateParams({a:$scope.a, b:$scope.b});
routeEvent
|
|
$locationChangeStart, $locationChangeSuccess
Resolve
No resolving | Resolving |
---|---|
jump to the route first | get data first |
get data later | then jump to route and pass data |
demo
|
|
|
|
route parameter
|
|