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
1 answer

Angular routerlink shows %20 before id path?

I am looking to display messages from a nested messages collection. I have some cards and when i click on view a tag i use routerlink to go to the desired path to see the messages. One out of 3 cards has a correct cardiD [![enter image description…
Man H
  • 77
  • 1
  • 11
0
votes
2 answers

vue-router what is the difference to from :to

When to use vue-router link as Login it render to login view and Login this one is the same. What is the difference and why we use the colon and we must use it ?
Hanik
  • 317
  • 2
  • 6
  • 25
0
votes
1 answer

Angular named router-outlet throwing error

I am developing a single page app where there can be multiple reactive forms loaded inside a single template. There are unique routes which connects to these form components. It is ok that when one form is displayed then another one is not shown as…
Ashwin
  • 12,081
  • 22
  • 83
  • 117
0
votes
1 answer

How can I redirect to the payulatam from through components in a SPA

I'm doing a SPA with Angular 6 and I'm creating payments with payulatam platform and I have a code for the sandbox payment that they offer I've been working with router link and I have a component called paymentPayU on this I'm using the payment…
Jay Pi
  • 73
  • 2
  • 8
0
votes
1 answer

With vue.js, how do I set an active tag to the currently active path?

In my template, I have
0
votes
2 answers

How to select between an actual routerLink and an internal anchor with Angular 8?

I have an array of items, which looks like this: nav: any = [ { name: 'Homepage', url: 'homepage' internal: false }, { name: 'Section 1', hash: 'section-1' internal: true }, ]; Now I need to ouput a list of…
lampshade
  • 2,470
  • 3
  • 36
  • 74
0
votes
2 answers

Angular - Get Event on Parent Component using routerLink

I'm emitting an event from child component to parent component like this Child Component export class ItemComponent { @Output() id = new EventEmitter() deleteProduct(id) { this.id.emit(id) } } Child Component tag
Hugo Seleiro
  • 2,467
  • 5
  • 26
  • 39
0
votes
1 answer

Router Link directive doesn't work when I have a promise code on app.module.ts

I have an app that has a login page and a register page, so when I click on a button in both pages it has to change from one to other. That works! but when I added a code to hide a persistent menú the button mentioned befored stopped working. This…
dav_mrs
  • 3
  • 1
0
votes
2 answers

Angular 6 pass data to component on router menu click

I have a navmenu component as under:
0
votes
1 answer

Angular 7 - Problem with parameters on the Router Link

I have a problem sending a parameter to a URL on child routing. Here are the details: I have a list of users with an Id and when I click on a user I need to send that Id as a parameter to the Url, Here's the userlist:
pedrodotnet
  • 788
  • 3
  • 16
  • 34
0
votes
0 answers

How can I use routerlink to change the url and not the component?

I have a service that records page activity with the NavigationEnd event from router.events Am I able to change the url without changing/displaying new children components? Right now I have { path: '', component: MainComponent, …
ghoul
  • 890
  • 1
  • 10
  • 17
0
votes
1 answer

Router Link is not loading another page with different placeholder. Is this the right way to do it?

I'm trying to build an Angular (v6.2.9) based theme for my blogger blog and this is when I encountered this problem. I'm trying to load pages from my blog. For this, I created components and corresponding paths (see the code below). Pages on blogger…
CherryGot
  • 39
  • 8
0
votes
1 answer

routerLink rewrites href

I have an angular project where I want to link to bookmarks on other pages. So in my html I have links like this: products but when the page compiles and runs, I see that this link gets rewritten to…
kjoetools
  • 528
  • 1
  • 6
  • 12
0
votes
1 answer

Angular: Dynamic path Routing issue

Im trying to navigate to a detailed component based on a click inside a NgFor. But the app navigates to home page, like the router wouldn't exist HTML
Mellville
  • 1,027
  • 2
  • 18
  • 39
0
votes
0 answers

How to routerlink *ngfor case method

I have faced compiling error on router link *ngFor method HTML {{mnu}}<\a> …
CPE
  • 1
  • 2