Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mini Card Component Class
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-mini-card',
templateUrl: './mini-card.component.html',
styleUrls: ['./mini-card.component.css']
})
export class MiniCardComponent {
@Input() icon: string;
@Input() title: string;
@Input() value: number;
@Input() color: string;
@Input() isIncrease: boolean;
@Input() isCurrency: boolean;
@Input() duration: string;
@Input() percentValue: number;
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment