Parse a url to a UrlTree in Angular

Create a UrlTree from a url using Angular router

Angular Router is the class that handles almost anything about navigation and urls in your application. One very useful method the parseUrl(url) which accepts a url as parameter and returns a UrlTree.