title: Is it possible to call Angular 4 method based on url/route?
body: <p>I am very new to Angular (4) and I would like to know if it is possible to call a method based on a specific url, similar to Ruby on Rails where routes are dispatch to controller actions.</p>
  
  <p>For example, if I have the route <a href="http://example.com/#/home/success" rel="nofollow noreferrer">http://example.com/#/home/success</a> I would like to call the <em>home component's success method</em>.</p>