title: How to use router.navigateByUrl and router.navigate in Angular
body: <p><a href="https://angular.io/api/router/RouterLink" rel="noreferrer">https://angular.io/api/router/RouterLink</a> gives a good overview of how to create links that will take the user to a different route in Angular4, however I can't find how to do the same thing programmatically rather needing the user to click a link</p>