update tslint -> eslint
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
<div [class.padding]="padding" class="card">
|
||||
<button *ngIf="closeLink" [routerLink]="closeLink" class="btn-close" mat-icon-button>
|
||||
<button
|
||||
*ngIf="closeLink"
|
||||
[routerLink]="closeLink"
|
||||
class="btn-close"
|
||||
mat-icon-button
|
||||
>
|
||||
<fa-icon [icon]="faClose"></fa-icon>
|
||||
</button>
|
||||
<div *ngIf="heading" class="heading">{{heading}}</div>
|
||||
<div *ngIf="heading" class="heading">{{ heading }}</div>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
||||
@@ -6,12 +6,13 @@ describe('CardComponent', () => {
|
||||
let component: CardComponent;
|
||||
let fixture: ComponentFixture<CardComponent>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [CardComponent]
|
||||
beforeEach(
|
||||
waitForAsync(() => {
|
||||
void TestBed.configureTestingModule({
|
||||
declarations: [CardComponent],
|
||||
}).compileComponents();
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
);
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CardComponent);
|
||||
@@ -20,6 +21,6 @@ describe('CardComponent', () => {
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
void expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,12 +4,12 @@ import {faTimes} from '@fortawesome/free-solid-svg-icons/faTimes';
|
||||
@Component({
|
||||
selector: 'app-card',
|
||||
templateUrl: './card.component.html',
|
||||
styleUrls: ['./card.component.less']
|
||||
styleUrls: ['./card.component.less'],
|
||||
})
|
||||
export class CardComponent {
|
||||
@Input() padding = true;
|
||||
@Input() heading: string;
|
||||
@Input() closeLink: string;
|
||||
@Input() public padding = true;
|
||||
@Input() public heading: string;
|
||||
@Input() public closeLink: string;
|
||||
|
||||
public faClose = faTimes;
|
||||
}
|
||||
|
||||
@@ -5,16 +5,9 @@ import {MatButtonModule} from '@angular/material/button';
|
||||
import {RouterModule} from '@angular/router';
|
||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [CardComponent],
|
||||
exports: [CardComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatButtonModule,
|
||||
RouterModule,
|
||||
FontAwesomeModule
|
||||
]
|
||||
imports: [CommonModule, MatButtonModule, RouterModule, FontAwesomeModule],
|
||||
})
|
||||
export class CardModule {
|
||||
}
|
||||
export class CardModule {}
|
||||
|
||||
Reference in New Issue
Block a user