detail view
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<div [class.padding]="padding" class="card">
|
||||
<div class="heading" *ngIf="heading">{{heading}}</div>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
||||
@@ -11,3 +11,8 @@
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import {Component, Input, OnInit} from '@angular/core';
|
||||
})
|
||||
export class CardComponent implements OnInit {
|
||||
@Input() padding = true;
|
||||
@Input() heading: string;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user