ajout event emitter dans avis-bar
This commit is contained in:
parent
bc93c272d4
commit
996674410a
@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-avis-bar',
|
selector: 'app-avis-bar',
|
||||||
@ -7,6 +7,7 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class AvisBarComponent implements OnInit {
|
export class AvisBarComponent implements OnInit {
|
||||||
starStates: {stateSelectedUser : boolean, stateHoverUser : boolean}[];
|
starStates: {stateSelectedUser : boolean, stateHoverUser : boolean}[];
|
||||||
|
@Output() stateNumber = new EventEmitter
|
||||||
starStateNumber: number = 0;
|
starStateNumber: number = 0;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -61,6 +62,7 @@ export class AvisBarComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//console.log(`Rating : ${this.starStateNumber}`);
|
//console.log(`Rating : ${this.starStateNumber}`);
|
||||||
|
this.stateNumber.emit(this.starStateNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user