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
text/typescript
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
({
selector: 'app-news-dropdown',
templateUrl: './news-dropdown.component.html',
styleUrls: ['./news-dropdown.component.css']
})
export class NewsDropdownComponent implements OnInit {
() dropDownChangeEvent = new EventEmitter();
constructor() { }
ngOnInit() {
}
source: any =
[
'ALL POSTS',
'NEWS',
'FORUM'
]
change(event) {
this.dropDownChangeEvent.emit(event.args.index);
}
}