Questions tagged [angular-routerlink]
220 questions
0
votes
2 answers
angular routing - navigate to same component with additional params without destroying the component
I have a routing setting like this
{
path: '',
component: BaseCmp,
children: [
{ path: 'list', component: ListCmp },
{
path: 'list/:itemId',
component: ListItemCmp,
},
{
…

Han Che
- 8,239
- 19
- 70
- 116
0
votes
1 answer
Angular lazy load of child module is not working?
I have a child module called branch and I wanted to load it only when I navigate to '/branch' url but am getting below error
ERROR Error: Uncaught (in promise): TypeError: undefined is not a function
TypeError: undefined is not a function
at…

nsk
- 1,413
- 5
- 24
- 34
0
votes
1 answer
Angular 5+ routerLinkActive doesn't work with repeated parameters
In my little example here everything works fine with the following paths:
https://angular-d7eqku.stackblitz.io/path1
https://angular-d7eqku.stackblitz.io/path1?param1=1
but if I use repeated query parameters to pass an array of values…

Stanislav Dontsov
- 1,591
- 11
- 24
0
votes
1 answer
Angular: Setting routerLink queryParams as component property results in error
When I bind queryParams using routerLink in Angular2, I am getting this error:
[ERROR] Exception while trying to serialize the value
This error is shown when I inspect the DOM. The links simply do not show at all on the page, so this was my only…

Haley Lohrenz
- 11
- 1
- 1
0
votes
2 answers
Issue with href attribute of tag in Angular
I am using Angular to develop Router features, so here it is my data coming from JSON as like, and below footer.html where using *ngFor is using to repeat list json list.details. But in ng-container, I`m not using any href attribute but in the image…

user2790547
- 1
- 1
- 3
0
votes
2 answers
angular route to children
Angular basic routing question:
This is my Routes structure in my app.module.ts
const routes: Routes = [
{ path: 'ManagerDataContainer', component:ManagerDataContainerComponent,
children:
[
{ path: 'SysUsersForm', component:…

Guy E
- 1,775
- 2
- 27
- 55
0
votes
1 answer
Angular 6 Routing using Multiple Outlets
I have the following scenario. I have two components, InvLoginComponent and InvDashboardComponent that are mounted on the "primary" (or nameless) router in my application. The user logs in and is routed to the dashboard component. Inside the…

Abrar Hossain
- 2,594
- 8
- 29
- 54
0
votes
2 answers
How can I set a default user idName in Angular 4?
How can I have a default to route like home/Welcome, currently my route is only coming as http://localhost:4200/home, I would like the user to have default idName as Welcome.
I have my routes set up as:
const marketRoutes:Routes = [
…

Poorna Chand
- 93
- 1
- 1
- 7
0
votes
2 answers
Url in browser will not navigate to corresponding routerlink
I have a single-page website running on an apache web server written using angular cli. I have a homepage and multiple links that navigate using the routerlink tag that work perfectly normally. However when I click on "about", for example, it…

b-rad15
- 89
- 1
- 2
- 13
0
votes
2 answers
Unexpected behavior when routing to children with componentless route in Angular 5
I have an question about Angular 5 routing.
If I declare routes like this below, the route guard is called every time I route to one of the components via routerLink in html.
const routes: Route[] = [
{ path: 'comp1', component: Comp1Component,…

ochs.tobi
- 3,214
- 7
- 31
- 52
0
votes
0 answers
nothing works well in mat-sidenav-container angular material 5
I'm using angular 5 and angular material. i have a mat-sidenav-container that consists of mat-sidenav and a mat-sidenav-content. and I have a mat-toolbar in the top of my page. I want to use routerLink in my sidenav-content but it's not working…

fariba.j
- 1,737
- 7
- 23
- 42
0
votes
0 answers
routerLink doesn't work in mat-sidenav
I have a mat-sidenav in my project and I want to link a text to another URL, but when I use routerLink it doesn't work but it works out of the side-nav.it even works in the toolbar. what is the problem? here are my codes:
HTML:
…

fariba.j
- 1,737
- 7
- 23
- 42
0
votes
1 answer
Angular4 - Parent child - Masterpage (Header, content, footer) like implementation
There are are some links in header components and when I click on any link.. corresponding data to that link must get display in the other component called app-Content.
but data is displaying only in header component .... not in the content…

user9401912
- 73
- 1
- 9
0
votes
1 answer
Click still running side effects on disabled button
I'm using mat-icon for buttons, and I want to disable some of them:
my problem is disabled property is set,…

cucuru
- 3,456
- 8
- 40
- 74
-1
votes
2 answers
Angular router: get the full URL of a given route
Given that my Angular apps runs in https://www.somewebsite.com/some-path/my-app/
And I have some routes for example:
https://www.somewebsite.com/some-path/my-app/my-route-1
https://www.somewebsite.com/some-path/my-app/my-route-2
Inside the…

Francesco Borzi
- 56,083
- 47
- 179
- 252