Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Du côté où tu veux envoyer la donnée
- this.router.navigate(['/', 'monitoring', 'laPlage'], {
- state: {
- key: 'value'
- }
- });
- // Du côté où tu veux récupérer les données
- if (this.router.getCurrentNavigation().extras && this.router.getCurrentNavigation().extras.state) {
- const extraData = this.router.getCurrentNavigation().extras.state;
- // tu récupères avec extraData.key par ex
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement