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
Post a Comment