mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Add Output Event From FilterButtomComponent
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="container" [class.active]="active">
|
||||
<div class="container" (click)="toggleFilter.emit()" [class.active]="active">
|
||||
<lib-icon class="icon" width="20px" [name]="active ? 'Icon_Filter_active' : 'Icon_Filter'"></lib-icon>
|
||||
<p class="text">Filter</p>
|
||||
<p class="text" >Filter</p>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, ChangeDetectionStrategy, Output, EventEmitter, Input } from '@angular/core';
|
||||
import { Component, ChangeDetectionStrategy, Output, EventEmitter, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-filter-button',
|
||||
@@ -7,10 +7,9 @@ import { Component, OnInit, ChangeDetectionStrategy, Output, EventEmitter, Input
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
|
||||
export class FilterButtonComponent implements OnInit {
|
||||
export class FilterButtonComponent {
|
||||
@Input() active = false;
|
||||
@Output() toggleFilter = new EventEmitter();
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user