ajout page accueil CSC
This commit is contained in:
parent
a19b70c0a0
commit
dc0f735be8
35 changed files with 535 additions and 93 deletions
|
@ -1,7 +1,9 @@
|
|||
import { Component, signal } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import {Component, inject, signal} from '@angular/core';
|
||||
import {ActivatedRoute, Router, RouterOutlet, NavigationEnd} from '@angular/router';
|
||||
import {TopNavigation} from './shared/navigation/top-navigation/top-navigation';
|
||||
import {FeedbackButton} from 'sae-lib/buttons/feedback-button/feedback-button';
|
||||
import {filter} from 'rxjs/operators';
|
||||
|
||||
// import {SaeLib} from '@sae-lib/src/public-api';
|
||||
|
||||
@Component({
|
||||
|
@ -11,5 +13,16 @@ import {FeedbackButton} from 'sae-lib/buttons/feedback-button/feedback-button';
|
|||
styleUrl: './app.scss'
|
||||
})
|
||||
export class App {
|
||||
public router = inject(Router);
|
||||
currentUrl: string = '';
|
||||
protected readonly title = signal('implem');
|
||||
|
||||
constructor() {
|
||||
this.router.events.pipe(
|
||||
filter(event => event instanceof NavigationEnd)
|
||||
).subscribe((event: any) => {
|
||||
this.currentUrl = event.urlAfterRedirects;
|
||||
console.log('Current URL:', this.currentUrl);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue