ConcretePage.com
HOME
ALL TUTORIALS
JAVA 8
SPRING BOOT
ANGULAR
ANDROID
Q&A
|
Sign In
Ask Question
how to display the current path , in which page and option current we are in
Angular
MohanKrishnaEnturi
Asked on September 30, 2018
how to display the current path , in which page and option current we are in
Anil
Replied on October 01, 2018
Try
constructor(@Inject(DOCUMENT) private doc) {
console.log(doc.URL);
}
https://www.concretepage.com/angular/angular-title-service-and-canonical-url
MohanKrishnaEnturi
Replied on December 09, 2018
The path needs to display in the response page not in the console
Write Answer
Login | Sign Up
Related Post
Angular Router Extra Options
Router.navigate vs Router.navigateByUrl
Router.navigate vs window.location.href
Angular Standalone: NullInjectorError: No provider for _HttpClient
How to disable strict mode in Angular
npm ERR! ERESOLVE unable to resolve dependency tree
Angular FormGroup vs FormArray
Angular FormGroup vs FormBuilder
Angular FormControl vs ngModel
Angular FormControl dirty vs touched
Angular FormGroup vs FormGroupName
Angular FormControl vs FormControlName
NullInjectorError: No provider for ActivatedRoute!
error NG8002: Can't bind to 'routerLink' since it isn't a known property of 'a'
Property has no initializer and is not definitely assigned in the constructor
Need help with Angular Interview Questions
Testing server sent events with Karma and Jasmine in Angular
ng extract-i18n not working
Unable to read the value which is in array inside Model
Angular Material Datepicker format YYYY-MM-DD
Angular Material Datepicker format DD-MM-YYYY
What is dateA11yLabel and monthYearA11yLabel in Datepicker in Angular Material?
Error: Cannot find module 'moment' or its corresponding type declarations
Error: "MatDatepicker: No provider found for DateAdapter
Angular 9 new features
Angular2 - Check-All box is selecting disabled checkbox in ngx data table
disable the checkbox of ngx-datatable based on some condition
when export data to excel error excel file not readable content?
Problem with the output of the Nested JSON
how to store the result of the JSON-RPC response to a variable?
Latest Forum Post
Angular Router Extra Options
(Angular)
Router.navigate vs Router.navigateByUrl
(Angular)
Router.navigate vs window.location.href
(Angular)
How to uninstall App in Mac
(MS Windows)
Angular Standalone: NullInjectorError: No provider for _HttpClient
(Angular)
About Us
We are a group of software developers.
We enjoy learning and sharing technologies.
To improve the site's content,
your valuable suggestions
are most welcome.
Thanks
Email :
concretepage@gmail.com
Utility
Age Calculator