import { Component, Input, ElementRef } from '@angular/core'; @Component({ selector: 'emoji-category', styleUrls: ['../styles/emoji-category.scss'], template: `

{{category.name}}

` }) export class EmojiCategoryComponent { @Input('category') category; constructor(private _element: ElementRef) { } public scrollIntoView() { this._element.nativeElement.scrollIntoView(); } }