Renommages code et vue

pull/2/head
Clement FERRERE 3 years ago
parent ee10add4a1
commit 4af9acff2b
  1. 2
      src/app/agence/agence.component.html
  2. 6
      src/app/agence/agence.component.ts
  3. 4
      src/app/app.component.html
  4. 2
      src/app/collaborateur/collaborateur.component.html
  5. 3
      src/app/home/home.component.html

@ -1,5 +1,5 @@
<div xmlns="">
<h2>Mes Agences</h2>
<h2>Agences</h2>
<table *ngFor="let agence of agences">

@ -14,7 +14,7 @@ export class AgenceComponent implements OnInit {
constructor(
private http : HttpClient,
private agenceservice: AgenceService,
private agenceService: AgenceService,
) { }
ngOnInit(): void {
@ -22,12 +22,12 @@ export class AgenceComponent implements OnInit {
}
getAgences():void {
this.agenceservice.getAgences()
this.agenceService.getAgences()
.subscribe(agences => this.agences = agences);
}
add(agence: Agence): void {
this.agenceservice.addAgence(agence)
this.agenceService.addAgence(agence)
.subscribe(agence => {
this.agences.push(agence);
});

@ -77,9 +77,9 @@
<div class="content" role="main">
<h1>Services Collaborateurs</h1>
<router-outlet></router-outlet>
<app-messages></app-messages>

@ -1,5 +1,5 @@
<div xmlns="">
<h2>Mes Collaborateurs</h2>
<h2>Collaborateurs</h2>
<table *ngFor="let collaborateur of collaborateurs">

@ -1 +1,2 @@
<p>Home works!</p>
<h1>Services Collaborateurs EPA</h1>

Loading…
Cancel
Save