We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049cc48 commit bfe4b24Copy full SHA for bfe4b24
src/app/registration/registration.component.ts
@@ -17,17 +17,13 @@ export class RegistrationComponent implements OnInit {
17
constructor(private utilisateurService:UtilisateurService, private router:Router){}
18
19
ngOnInit(): void {
20
- this.findAllUtilisateurs();
21
22
}
23
- findAllUtilisateurs(){
24
- this.utilisateurService.findAll().subscribe(data => {this.users = data});
25
- }
+
26
27
saveUtilisateur(){
28
this.utilisateurService.save(this.utilisateur).subscribe(
29
() => {
30
31
this.utilisateur = new Utilisateur();
32
33
)
0 commit comments