mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[CL-135] Migrate component library to standalone components (#12389)
* Migrate component library to standalone components * Fix tests
This commit is contained in:
@@ -68,6 +68,7 @@ abstract class LinkDirective {
|
||||
|
||||
@Directive({
|
||||
selector: "a[bitLink]",
|
||||
standalone: true,
|
||||
})
|
||||
export class AnchorLinkDirective extends LinkDirective {
|
||||
@HostBinding("class") get classList() {
|
||||
@@ -79,6 +80,7 @@ export class AnchorLinkDirective extends LinkDirective {
|
||||
|
||||
@Directive({
|
||||
selector: "button[bitLink]",
|
||||
standalone: true,
|
||||
})
|
||||
export class ButtonLinkDirective extends LinkDirective {
|
||||
@HostBinding("class") get classList() {
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { NgModule } from "@angular/core";
|
||||
|
||||
import { AnchorLinkDirective, ButtonLinkDirective } from "./link.directive";
|
||||
|
||||
@NgModule({
|
||||
imports: [CommonModule],
|
||||
imports: [AnchorLinkDirective, ButtonLinkDirective],
|
||||
exports: [AnchorLinkDirective, ButtonLinkDirective],
|
||||
declarations: [AnchorLinkDirective, ButtonLinkDirective],
|
||||
})
|
||||
export class LinkModule {}
|
||||
|
||||
Reference in New Issue
Block a user