Questions tagged [routerlink]

This is used by Angular (2+ maybe Angular JS too -not sure of that) to control navigation between UI components. It acts like a Controller/traffic cop, passing state information on via a URL. Here is the official link to the documentation

312 questions
0
votes
0 answers

SPA from within component and clicking on nav appends to the url VueJS

I am creating a SPA in VueJS and when I click the nav links, they take me to the appropriate id's within the page. I have a component for my Privacy page. When one goes to the menu to go back to any router-link, it appends the name of the link to…
Erik James Robles
  • 721
  • 2
  • 12
  • 24
0
votes
1 answer

RouterLink selector

from the official docs the RouterLink directive selector is :not(a):not(area)[routerLink] ( it means select all elements with routerLink attribute tha are not anchor or area elements, right?) How is it possible then to work on an anchor tag like…
Giorgos
  • 65
  • 1
  • 5
0
votes
1 answer

Hide element with css based on router link

I am using a plugin of which I want to hide an element. It is about the buttons below, they both have the same class, but a different Router link, now I only want to hide on of these buttons. I am wondering wether I can call one of these elements…
Olga Berning
  • 153
  • 10
0
votes
1 answer

hidden params in router link using vuex

I have two going to the same component, but I want to update an attribute of my store.js when I click on each of these .  New service …
Izaskun DA
  • 39
  • 2
  • 7
0
votes
1 answer

Why is Angular routerLink (without leading slash) broken when navigating back to empty path?

Let's take this basic navigation tree: primary secondary deep Look at my Stackblitz project. My routes are const routes: Routes = [ { path: "", component: PageParentComponent, children: [ { path: "", …
Stratubas
  • 2,939
  • 1
  • 13
  • 18
0
votes
4 answers

Is there any way to disable/prevent options to "Open in a new tab/window" when using RouterLink in Angular 5?

I have a single page application and using RouterLink in anchor tag() to navigate to other pages without refresh.
0
votes
1 answer

VueJs router-link not working, but link copied from it works in another tab

I am building an webapp with VueJs. I have three pages, apps, registries, identities. In the apps page there is a table with apps with a link1 (localhost:8080/apps/{appid}/regs) to view it's registry in each row. Similarly in registry page, there is…
Bopsi
  • 2,090
  • 5
  • 36
  • 58
0
votes
1 answer

Vue.js VueRouter router-link changes URL but page does not

my main.js file has the following import TurbolinksAdapter from 'vue-turbolinks'; import Vue from 'vue/dist/vue.esm'; import VueRouter from 'vue-router'; import EventIndex from '../src/views/EventsIndex.vue'; import EventsTable from…
It'sJohnny
  • 19
  • 5
0
votes
1 answer

using href or routerlink with #

I'm fairly new to changing paths / position of page so I would like a little help on this. Say, when a button is clicked, I want to scroll down to another portion of the page. (where id of that section is 'xyz') however, I'm using an entirely…
justTryin
  • 15
  • 5
0
votes
1 answer

Unable to fetch Id of clicked record from table in Angular

I am working on Angular project. I want to fetch the Id of one record which I clicked, to pass in another component. When I click the record I am able to see the ID in Url, but not able to fetch in new component. This is my code of 1st…
R15
  • 13,982
  • 14
  • 97
  • 173
0
votes
1 answer

Angular routerLink only triggers ngOnInit once

I have found several questions similar to mine, but the big part are related to params, the answers didn't help me to solve my issue. Basically the problem is the following: Once the user logs in, the user is able to visualize his/her username in…
HeyBaldur
  • 545
  • 1
  • 7
  • 16
0
votes
1 answer

How to use a "complete Url" (url with params) for navigation in Angular

I have a search page with lots of filter options, these options are all passed to the url as params on the search page (so it is possible to share a search). when going to a detail page for one row in the search result, then I are parsing the…
PNR
  • 555
  • 3
  • 12
  • 26
0
votes
3 answers

Why new component opening in the same page

I am new to Angular, I have created very simple application with two component, I just want to navigate from one to another. But second components opens in same(below the 1st) component. How can I open 2nd comp. in new page? This is my code
R15
  • 13,982
  • 14
  • 97
  • 173
0
votes
2 answers

CLOSED - RouterLink doesn't work properly to show user detail - Angular 8

I am doing an app and I am having an issue to show the user detail. I think I have added correctly all steps about router but for any unknown reason it is not working. The idea is that I have a menu with an option that is "Users" which content is a…
beanic
  • 539
  • 6
  • 22
0
votes
1 answer

DxDataGrid does not trigger routerLink when keyboard navigation

I am using devextreme data grid. I have the next code: Whenever I click on a row, it works as…