• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Routes and (:hash)

#1
Question 
Hi,


In the doc I found something like that (:hash) for routing placeholder - here

but I don't know how I should use it. Can anyone tell me that? Smile


Thx
Reply

#2
There are no difference to (:segment) other than the name. It's just so that you can organize your router differently. So you know what routes you have hashes and need to decode.

You can see a hashids example in this npm package:
https://www.npmjs.com/package/hashids
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.