javascript - AngularJS dynamic parameters count in $routeProvider -


i working on first angular app , it's cool.

i have trouble work routers

i have routings:

.when("/products/:productcat", { templateurl : "/home/config", controller : "configcontroller" }) .when("/products/:productcat/:nx/:nxvalue", { templateurl : "/home/config", controller : "configcontroller" }) 

i have configurator, , wont pass more parameters can define in rountig provider. illustrated steps of configurating product, there 7-20 steps. whats best way handle it?

what mean looks this:

.when("/products/:productcat/:nx/:nxvalue", { templateurl : "/home/config", controller : "configcontroller" }) .when("/products/:productcat/:nx/:nxvalue/:nx2/:nxvalue2", { templateurl : "/home/config", controller : "configcontroller" }) .when("/products/:productcat/:nx/:nxvalue/:nx2/:nxvalue2/:nx3/:nxvalue3", { templateurl : "/home/config", controller : "configcontroller" }) 

but cant create 30 routs , check each time parameters set or not.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -