param
can.route.param
Get a route path from given data.
can.route.param( data )
Parameters
-
object
{data}
The data to populate the route with.
Returns
{String}
The route, with the data populated in it.
Get a route path from given data.
{data}
The data to populate the route with.
{String}
The route, with the data populated in it.
Parameterizes the raw JS object representation provided in data.
If a route matching the provided data is found, that URL is built from the data. Any remaining data is added at the end of the URL as & separated key/value parameters.