detail view

This commit is contained in:
2019-11-24 17:08:02 +01:00
committed by smuddy
parent 0bfee780e8
commit 410b26f9ba
12 changed files with 81 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
<div [class.padding]="padding" class="card">
<div class="heading" *ngIf="heading">{{heading}}</div>
<ng-content></ng-content>
</div>

View File

@@ -11,3 +11,8 @@
padding: 20px;
}
}
.heading {
font-size: 20px;
font-weight: bold;
}

View File

@@ -7,6 +7,7 @@ import {Component, Input, OnInit} from '@angular/core';
})
export class CardComponent implements OnInit {
@Input() padding = true;
@Input() heading: string;
constructor() {
}