refactor: migra NgModules a componentes standalone
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
import { Directive, HostBinding, Input } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
standalone: false,
|
||||
selector: '[pi-value]',
|
||||
})
|
||||
@Directive({ selector: '[pi-value]', })
|
||||
export class PiValueDirective {
|
||||
@HostBinding('class') get classes(): string | boolean {
|
||||
return ['pi-value', this.value > 0 ? 'is-positive' : 'is-negative'].join(' ');
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './util-value.module';
|
||||
|
||||
|
||||
export * from './directives/value.directive';
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { PiValueDirective } from './directives/value.directive';
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
declarations: [PiValueDirective],
|
||||
exports: [PiValueDirective],
|
||||
|
||||
})
|
||||
export class PiSharedUtilValueModule {}
|
||||
Reference in New Issue
Block a user