我有Angular 2的问题.当我想启动服务器它得到这个:
$ ng serve
Cannot read property 'config' of null
TypeError: Cannot read property 'config' of null
at Class.run (C:\Users\Damien\Desktop\application\node_modules\@angul ar\cli\tasks\serve.js:22:63)
at check_port_1.checkPort.then.port (C:\Users\Damien\Desktop\application\node_modules\@angular\cli\commands\serve.js:103:26)
at process._tickCallback (internal/process/next_tick.js:103:7)
Run Code Online (Sandbox Code Playgroud)
我重新安装了CLI,没有其他工作正常.我可以用json文件吗?
我正在使用角垫桌。
我的问题是mat-cell的高度始终为14px(内部内容大小),但是我想修复mat-row的高度:
<mat-table #table [dataSource]="dataSource">
<ng-container matColumnDef="NAME">
<mat-header-cell fxFlex="100%" class="my-mat-header" *matHeaderCellDef>
{{'NAME' | translate}}
</mat-header-cell>
<mat-cell fxFlex="100%" class="my-mat-cell" *matCellDef="let element">
{{ element.name }}
</mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns" class="my-mat-header-row"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;" class="my-mat-row"></mat-row>
</mat-table>
.my-mat-row {
min-height: 100%;
border-bottom: none;
padding: 5px 0;
}
.my-mat-cell {
color: black;
cursor: pointer;
min-height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
垫行高度为50像素,而垫单元高度仅为14像素。
如何填充父高?