AngularJS routing for dynamic urls, how? -


i'm trying understand how can configure angularjs routing given following case:

we have search page display search results based on tags provided (1..n tags). user able parse enter url following , our system search , show respective results.

the url format should be:

http://mywebsite.com/search/<term1>/<term2>/<termn>...so different number of terms.

i looking route provide , couldn't figure out way dynamically.

i saw put in routeprovid:

.when('/search/:searchparams',... handles when have 1 term...is there anyway configure take many terms given?

does @ all? seems support dynamic routing , cut apart :name parameter wish, perhaps.

http://gregorypratt.github.io/angulardynamicrouting/

ken


Comments