current
can.route.current
can.route.current( data )
Check if data represents the current route.
Parameters
-
data
{Object}
Data to check agains the current route.
Returns
{Boolean}
Whether the data matches the current URL.
Checks the page's current URL to see if the route represents the options passed into the function.
Returns true if the options respresent the current URL.