24 lines
700 B
TypeScript
24 lines
700 B
TypeScript
import { Component, Input, OnInit } from '@angular/core';
|
|
import { CommonModule } from '@angular/common'; // <-- Importe aqui!
|
|
|
|
@Component({
|
|
selector: 'app-feature-card',
|
|
standalone: true, // <-- DEVE ser standalone
|
|
imports: [CommonModule], // <-- PRECISA do CommonModule para usar [ngClass]
|
|
templateUrl: './feature-card.html',
|
|
styleUrls: ['./feature-card.scss']
|
|
})
|
|
export class FeatureCardComponent implements OnInit {
|
|
|
|
// ... o restante da lógica ...
|
|
@Input() title: string = '';
|
|
@Input() description: string = '';
|
|
@Input() iconClass: string = '';
|
|
@Input() textAlign: 'left' | 'center' = 'left';
|
|
|
|
isHovered: boolean = false;
|
|
|
|
constructor() { }
|
|
|
|
ngOnInit(): void { }
|
|
} |