Skip to content

Commit 181e72e

Browse files
author
*rkeita31*
committed
formu okk
1 parent 964cf02 commit 181e72e

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"express": "4.17.3",
4141
"googleapis": "99.0.0",
4242
"hammerjs": "2.0.8",
43-
"jquery": "3.6.0",
43+
"jquery": "^3.6.0",
4444
"moment": "^2.29.4",
4545
"perfect-scrollbar": "1.5.5",
4646
"popper.js": "1.16.1",

src/app/components/registration/registration.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h3 class="card-title">Creer un compte</h3>
4848
</div>
4949
<div class="row">
5050
<div class="update ml-auto mr-auto">
51-
<button class="btn btn-primary btn-round">Valider</button>
51+
<button class="btn btn-primary btn-round" name="btn1">Valider</button>
5252
</div>
5353
</div>
5454
</form>

src/app/components/registration/registration.component.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,20 @@ import { UtilisateurService } from 'app/services/utilisateur.service';
1010
styleUrls: ['./registration.component.scss']
1111
})
1212
export class RegistrationComponent implements OnInit {
13+
user!:any[];
1314

14-
15-
16-
17-
users!: any[]
18-
roles!: any[];
1915
utilisateur: Utilisateur = new Utilisateur();
2016
constructor(private utilisateurService: UtilisateurService, private router: Router) { }
2117
ngOnInit(): void {
2218
this.saveUtilisateur();
23-
19+
$('[name="btn1"]').click(function(){
20+
alert("Compte créé avec succés");
21+
})
22+
2423
}
2524

26-
2725
saveUtilisateur() {
28-
this.utilisateurService.save(this.utilisateur).subscribe(
26+
this.utilisateurService.save(this.user).subscribe(
2927
() => {
3028
this.utilisateur = new Utilisateur();
3129
}

0 commit comments

Comments
 (0)