/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { Component } from '@angular/core'; @Component({ selector: 'nb-card-test', template: ` Header Body Footer `, }) export class NbCardTestComponent { sizes = ['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge', 'xxlarge']; statuses = ['primary', 'success', 'info', 'warning', 'danger', 'active', 'disabled']; cards: any[]; constructor() { this.cards = this.prepareCards(); } private prepareCards(): any[] { const result = []; this.statuses.forEach(status => { this.sizes.forEach(size => { result.push({ size, status, }); }); }); return result; } }