lundi 30 mai 2016

Dynamic routing with array of values AngularJS

I would like to provide a dynamic route with AngularJS and get an array of value, like we would do with GET request parameters : (/?id[]=1&id[]=2..) I do not know if angular js provides a "clean" way like :

/array/of/value/[1,2,3,4] 

And get the array with ngRoute and $routeProvider :

.when("/list/:arrayOfValue", {templateUrl: "./partials/list.html", controller: "ListController"})




Aucun commentaire:

Enregistrer un commentaire