Created
November 10, 2019 05:28
-
-
Save parzibyte/dd58617f2bf3d47ef8b3a3c5fdeaebf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ActivatedRoute } from '@angular/router'; // Importar | |
export class EditarMascotaComponent implements OnInit { | |
constructor(private route: ActivatedRoute) { } // <-- inyectar | |
ngOnInit() { | |
// Leer | |
let idMascota = this.route.snapshot.paramMap.get("id"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment