activated typescript strict mode
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {IconProp} from '@fortawesome/fontawesome-svg-core';
|
||||
import {faCross} from '@fortawesome/free-solid-svg-icons/faCross';
|
||||
|
||||
@Component({
|
||||
selector: 'app-button',
|
||||
@@ -7,5 +8,5 @@ import {IconProp} from '@fortawesome/fontawesome-svg-core';
|
||||
styleUrls: ['./button.component.less'],
|
||||
})
|
||||
export class ButtonComponent {
|
||||
@Input() public icon: IconProp;
|
||||
@Input() public icon: IconProp = faCross;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user