Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 10, 2019 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/dd58617f2bf3d47ef8b3a3c5fdeaebf2 to your computer and use it in GitHub Desktop.
Save parzibyte/dd58617f2bf3d47ef8b3a3c5fdeaebf2 to your computer and use it in GitHub Desktop.
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