Throw a friendly error if cols property is missing
()
| 129 | |
| 130 | /** Throw a friendly error if cols property is missing */ |
| 131 | private _checkCols() { |
| 132 | if (!this.cols && (typeof ngDevMode === 'undefined' || ngDevMode)) { |
| 133 | throw Error( |
| 134 | `mat-grid-list: must pass in number of columns. ` + `Example: <mat-grid-list cols="3">`, |
| 135 | ); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /** Default to equal width:height if rowHeight property is missing */ |
| 140 | private _checkRowHeight(): void { |