license import { ChangeDetectionStrategy , Component , Input , ViewEncapsulation } from '@angular/core' ; import { coerceBooleanProperty } from '@angular/cdk/coercion' ; @ Component ( { moduleId : module . id , 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 . None , changeDetection : ChangeDetectionStrategy . OnPush , } ) export class MatDivider { /** Whether the divider is vertically aligned. */ @ Input ( ) get vertical ( ) : boolean { return this . _vertical ; } set vertical ( value ) { this . _vertical = coerceBooleanProperty ( value ) ; } private _vertical : boolean = false ; /** Whether the divider is an inset divider. */ @ Input ( ) get inset ( ) : boolean { return this . _inset ; } set inset ( value ) { this . _inset = coerceBooleanProperty ( value ) ; } private _inset : boolean = false ; }