I am having some weird problem passing multiple parameters using ui-router
My ui-sref looks like this:
ui-sref="app.bins.view({binId:{{gridDisplayItem.id}},allowUpload:'{{gridDisplayItem.user_upload}}'})"
if I inspect the element, I see something like:
<a ui-sref="app.bins.view({binId:3,allowUpload:'No'})" href="#/app/bins/view/3">
<i class="fa fa-folder-open" style="font-size:18px;color:green"></i>
</a>
so the correct value is being passed.
When I navigate to app.bins.view and I do a console.log($stateParams.binId); it shows 3.
If I do a console.log($stateParams.allowUpload); I get undefined.
If I do a console.log($stateParams); I get Object {binId: "3"}
According to the docs, I am doing this correctly: https://github.com/angular-ui/ui-router/wiki/Quick-Reference#ui-sref
What am I doing wrong here?
undefinedwith quotes around the value. Edited my post to reflect the single quoteshrefattribute from your link