import { Component, Input, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'emoji-categories', styles: [`:host{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0 0 10px}`], template: ` ` }) export class EmojiCategoriesComponent { @Input('emojisCategories') emojisCategories; @Output('categorySelection') categorySelection = new EventEmitter(); constructor() {} handleCategorySelection(event) { this.categorySelection.emit(event); } }