UNPKG

jqwidgets-framework

Version:

jQWidgets is an advanced Angular, Vue, Blazor, React, Web Components, jquery, ASP .NET MVC, Custom Elements and HTML5 UI framework.

30 lines (21 loc) 587 B
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'app-news-dropdown', templateUrl: './news-dropdown.component.html', styleUrls: ['./news-dropdown.component.css'] }) export class NewsDropdownComponent implements OnInit { @Output() dropDownChangeEvent = new EventEmitter(); constructor() { } ngOnInit() { } source: any = [ 'ALL POSTS', 'NEWS', 'FORUM' ] change(event) { this.dropDownChangeEvent.emit(event.args.index); } }