FE/Angular
[ ANGULAR ] Current URL
HEON.D
2023. 9. 4. 16:27
import { Router } from '@angular/router';
constructor(private router: Router) { }
ngOnInit() {
const currentUrl = this.router.url;
console.log('Current URL:', currentUrl);
}