Комментарии:
How can we open/navigate to the route in a new window with query params. Please suggest
ОтветитьWhat can be done if we want to stay on the first tab whenever we click on the option from side nav. Please suggest.
ОтветитьLove from kashmir
ОтветитьThanks a lot sir
Ответитьsir plzz give me source code
Ответитьin case we use navigate method not navigatebyurl , is there any way to make the route name fed as a variable not a direct text
ОтветитьWhen I import Router in ts file then it gives error
Error: src/app/users/users.component.ts:2:23 - error TS1149: File name 'D:/angularProject/angularrouting/node_modules/@angular/router/router.d.ts' differs from already included file name 'D:/angularProject/angularrouting/node_modules/@angular/Router/router.d.ts' only in casing.
The file is in the program because:
Imported via '@angular/Router' from file 'D:/angularProject/angularrouting/src/app/app.module.ts' with packageId '@angular/router/[email protected]'
Imported via '@angular/Router' from file 'D:/angularProject/angularrouting/src/app/app.component.ngtypecheck.ts' with packageId '@angular/router/[email protected]'
Imported via "@angular/router" from file 'D:/angularProject/angularrouting/src/app/users/users.component.ts' with packageId '@angular/router/[email protected]'
2 import{ Router } from "@angular/router";
~~~~~~~~~~~~~~~~~
src/app/app.module.ts:3:38
3 import { Routes, RouterModule } from '@angular/Router';
~~~~~~~~~~~~~~~~~
File is included via import here.
src/app/app.component.ngtypecheck.ts:2:21
2 import * as i1 from '@angular/Router';
~~~~~~~~~~~~~~~~~
File is included via import here.