I want to view some directory in a new tab from angular 8 using the absolute directory path.
Right now I'm trying the following
html
<a (click)="goToLink()">click to see directory</a>
ts
goToLink() {
window.open("/directory/path");
}
but this open a new tab with the url "http://localhost:4200/directory/path"
which just takes me to "http://localhost:4200" my app homepage
Aucun commentaire:
Enregistrer un commentaire