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

cannot bind path dynamically on vuejs with router-link and v-for

I'm having trouble rendering router-link properly with v-for directive. What I want is that, I want the side menu to have a link that leads the user to the page that url corresponds with the name of the side menu element. So, if the element is…
HelloWorld
  • 973
  • 2
  • 9
  • 23
0
votes
1 answer

Angular5 [routerLink]="['/url']" Error trying to diff '[object Object]'. Only arrays and iterables are allowed

title Angular5 [routeLink]="['/url']" throw a Error trying to diff '[object Object]'. Only arrays and iterables are allowed. ERROR Error: Error trying to diff '[object Object]'. Only…
cnst
  • 1
  • 2
0
votes
1 answer

Angular 4 - routerLink not working for own library

in angular 4 project, i have created my own library for rendering sidebar and included that library in main project. Now issue is i want to enable "open in new tab/window" option in context menu of browser. But i don't want to reload the full page…
user
  • 69
  • 1
  • 3
0
votes
1 answer

How to highlight same page number for two different URLs in angular 2 using routerLink

I have pagination like below. I would like to highlight page number 2 for both the below links. [routerLink]="['/link/sublink2'] [routerLink]="['/link/sublink22'] How to achieve this using angular 2.
user2613946
  • 435
  • 2
  • 7
  • 17
0
votes
2 answers

routerLink not working inside ngFor

I'm facing this sweet issue since three days. Let start with this single HTML code that is making
0
votes
1 answer

Routing in current page using Hashtag angular 4

I would add Hashtag links in my current page. I found this answer in this post : Angular2 Routing with Hashtag to page anchor I tried to use Gunter Answer. My app structure is like this: ComponentApp.html
infodev
  • 4,673
  • 17
  • 65
  • 138
0
votes
0 answers

angular2 data send through routerlLink are always undefined

Good morning, I have problem when i send data through routerLink; in the destination component they are always undefined. In fact the template is:
scg gerard
  • 43
  • 7
0
votes
0 answers

routerLink negation condition

im trying to add "not" conditional to routerlink using Angular 2. My use case is that i want the pages to have a default class everytime im not in the home page, and i dont want to add the class for every page. It is for showging a sidebar, that…
user8098507
0
votes
1 answer

Angular 4 router loading all the components

I am currently working on a project with Angular 4. Until today I had no problems with Router but I use Angular Materials components and this morning I saw that I had to update the Angular Material package. I executed : npm update Since then when…
0
votes
1 answer

How to pass an Angular routerLink to a WKWebview with Swift

I have a Angular Web Application that I am working on creating a WKWebview hybrid app from. It is a fairly basic app with 4 buttons on the bottom that pass a parameter to the WKWebView to open either the Main, Profile, Chat or Settins page of the…
lundzern
  • 417
  • 3
  • 11
0
votes
3 answers

Angular 4 - Routing issue , added a new route and it looks like others, but on page refresh it throws 404 error

On the terminal on my localhost i can see npm say " 404 error /coins" Then On the page it says Not Found These URLS work fine http://localhost:8808/events/new http://localhost:8808/events But I ADDED in this "coins" one Go there…
user6321478
0
votes
1 answer

How to replace key with values using regex for mention link angular 4?

I am creating a mention directive.When user trying to insert something on textarea my directive will trigger and shows the users list.On save this will return the value as text. Eg: Good morning @alice.Today is @bob 's birthday. I would like to show…
Amal Shehu
  • 119
  • 2
  • 14
0
votes
0 answers

Load Angular routerlink in template with a querySelector

For an existing MVC application we're bootstrapping our Angular app module using a querySelector. @Component({ selector: 'my-app', template: document.querySelector("my-app").innerHTML }) Components get rendered and everything is well. However,…
ndoes
  • 667
  • 5
  • 16
0
votes
2 answers

Toggle routeLink in angular 4

I'm creating a web app that will have a side menu loaded from another page in angular 4. My menu-button with routerLink is defined in here.
Sivvio
  • 297
  • 2
  • 7
  • 22
0
votes
0 answers

Angular 4: routerLink anchors within material md-cell won't work

UPDATED: the md-table is wrapped in some containers using flex layout directives that seem to be causing this issue. I am updating the code to show these wrappers. Specifically, the fxLayoutGap in the outer wrapper is breaking the app I have this…