I am using Material Module with Angular 8. How can we define metadata for typescript models and how do we access this metadata both in component HTML and ts file.
export class Qualifier { [Name="Name"] [Order=1] [Type="String"] public name: string; [Name="Qualifier Description"] [Order=3] [Type="String"] public description: string; [Name="Usage"] [Order=2] [Type="Number"] public usage: number; } I am using this model as data source for mat-table and i need my own column headers, Display Order and show mat-menu based on datatype. Please let me know. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/70dcb93c-fd00-4a30-9aac-c97be0c31738o%40googlegroups.com.