Hi I using angular 8 with ng-bootstrap to add table in my project
I find this code that I didn't understand very well
@Directive({
selector: 'th[sortable]',
host: {
'[class.asc]': 'direction === "asc"',
'[class.desc]': 'direction === "desc"',
'(click)': 'rotate()'
}
})
can anyone tell me what the code say?
and what "th" mean in selector.
also host can i change it to something else because the editor say that, is it Old property or what
Thanks to all
