title: How to get base url in angular 5?
body: <p>My current url is <a href="http://localhost:4200/test/dashboard" rel="noreferrer">http://localhost:4200/test/dashboard</a>.</p>
  
  <p>I want to print base url i.e <a href="http://localhost:4200" rel="noreferrer">http://localhost:4200</a> using angular 5 features.</p>