Skip to content
Snippets Groups Projects
Commit de27a6fc authored by Eileen McNaughton's avatar Eileen McNaughton
Browse files

Add route parameter reference to angular js

parent 7a4c1e04
No related branches found
No related tags found
No related merge requests found
......@@ -152,4 +152,8 @@ declaration the `$scope` and `$routeParams` are received.
Note that if you create afforms `routeParams` will be made available through the
afform infrastructure. For this reason it is good to standardise assigning
`routeParams` as the variable name in the html.
\ No newline at end of file
`routeParams` as the variable name in the html.
When loading the form you can access route parameters in the js layer
by referring to `$route.current.params.{my-paramter}` - eg.
![img.png](../../img/RouteParameter.png)
\ No newline at end of file
docs/img/RouteParameter.png

88.4 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment