1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[CL-135] Migrate component library to standalone components (#12389)

* Migrate component library to standalone components

* Fix tests
This commit is contained in:
Oscar Hinton
2024-12-17 23:29:48 +01:00
committed by GitHub
parent ac13cf7ce6
commit 5a582dfc6f
101 changed files with 330 additions and 216 deletions

View File

@@ -8,6 +8,7 @@ import { Icon, isIcon } from "./icon";
@Component({
selector: "bit-icon",
template: ``,
standalone: true,
})
export class BitIconComponent {
@Input() set icon(icon: Icon) {

View File

@@ -9,7 +9,7 @@ describe("IconComponent", () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [BitIconComponent],
imports: [BitIconComponent],
}).compileComponents();
fixture = TestBed.createComponent(BitIconComponent);

View File

@@ -1,11 +1,9 @@
import { CommonModule } from "@angular/common";
import { NgModule } from "@angular/core";
import { BitIconComponent } from "./icon.component";
@NgModule({
imports: [CommonModule],
declarations: [BitIconComponent],
imports: [BitIconComponent],
exports: [BitIconComponent],
})
export class IconModule {}