@@ -2,29 +2,27 @@ import { Component, Input, ContentChild } from '@angular/core';
22
33import { BoxSmallContentDirective , BoxSmallFooterDirective , BoxSmallHeaderDirective } from './box-small.directive' ;
44
5- /*
6- *
7- */
5+
86@Component ( {
97 selector : 'mk-box-small' ,
108 templateUrl : './box-small.component.html' ,
119 styleUrls : [ './box-small.component.css' ]
1210} )
1311export class BoxSmallComponent {
14- @Input ( ) public backgroundColor : string ;
15- @Input ( ) public contentColor : string ;
12+ @Input ( ) public backgroundColor ? : string ;
13+ @Input ( ) public contentColor ? : string ;
1614 @Input ( ) public contentStyleClass = 'small-box-content' ;
17- @Input ( ) public footer : string ;
18- @Input ( ) public footerColor : string ;
15+ @Input ( ) public footer ? : string ;
16+ @Input ( ) public footerColor ? : string ;
1917 @Input ( ) public footerStyleClass = 'small-box-footer' ;
20- @Input ( ) public header : string ;
21- @Input ( ) public headerColor : string ;
18+ @Input ( ) public header ? : string ;
19+ @Input ( ) public headerColor ? : string ;
2220 @Input ( ) public headerStyleClass = 'small-box-header' ;
23- @Input ( ) public iconColor : string ;
21+ @Input ( ) public iconColor ? : string ;
2422 @Input ( ) public iconStyleClass = 'ion ion-bag' ;
2523 @Input ( ) public styleClass = 'small-box' ;
2624
27- @ContentChild ( BoxSmallHeaderDirective , /* TODO: add static flag */ { } ) public boxSmallHeaderDirective : BoxSmallHeaderDirective ;
28- @ContentChild ( BoxSmallFooterDirective , /* TODO: add static flag */ { } ) public boxSmallFooterDirective : BoxSmallFooterDirective ;
29- @ContentChild ( BoxSmallContentDirective , /* TODO: add static flag */ { } ) public boxSmallContentDirective : BoxSmallContentDirective ;
25+ @ContentChild ( BoxSmallHeaderDirective ) public boxSmallHeaderDirective ? : BoxSmallHeaderDirective ;
26+ @ContentChild ( BoxSmallFooterDirective ) public boxSmallFooterDirective ? : BoxSmallFooterDirective ;
27+ @ContentChild ( BoxSmallContentDirective ) public boxSmallContentDirective ? : BoxSmallContentDirective ;
3028}
0 commit comments