I need to implement a route guard for my angular2 app based on the URL parameter that passed in the routing, for example:
http://myapp.com/test1/sites -------> where my routes use the test1 as a parameter :sitename
so if the passed parameter == test1 then canActivate return true, otherwise return false.
so how to implement this ?