Articles with #angular-material

  • Deep Dive into Angular Components: MatDivider
    This series explains how Angular Components are working by diving its source code deeply. MatDivider MatDivider is one of the simplest component in the Angular Material library. It just can display a line separator but its source code is worth to read enough. @Component({ selector: ‘mat-divider’, host: { ‘role’: ‘separator’, ‘[attr.aria-orientation]’: ‘vertical ? "vertical" : "horizontal"’, ‘[class.mat-divider-vertical]’: ‘vertical’, ‘[class.mat-divider-horizontal]’: ‘!vertical’, ‘[class.mat-divider-inset]’: ‘inset’, ‘class’: ‘mat-divider’ }, template: ‘’, styleUrls: [‘divider.css’], encapsulation: ViewEncapsulation.