mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 06:23:38 +00:00
temp: example directive usage
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</a>
|
||||
|
||||
<div class="tw-text-center tw-mb-6">
|
||||
<div class="tw-mx-auto tw-max-w-28 sm:tw-max-w-32">
|
||||
<div track-event="shield-clicked" class="tw-mx-auto tw-max-w-28 sm:tw-max-w-32">
|
||||
<bit-icon [icon]="icon"></bit-icon>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Component, HostBinding, Input, OnChanges, OnInit, SimpleChanges } from
|
||||
import { RouterModule } from "@angular/router";
|
||||
import { firstValueFrom } from "rxjs";
|
||||
|
||||
import { TrackEventDirective } from "@bitwarden/angular/analytics/track-event.directive";
|
||||
import { ClientType } from "@bitwarden/common/enums";
|
||||
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
@@ -16,7 +17,14 @@ import { BitwardenLogo, BitwardenShield } from "../icons";
|
||||
standalone: true,
|
||||
selector: "auth-anon-layout",
|
||||
templateUrl: "./anon-layout.component.html",
|
||||
imports: [IconModule, CommonModule, TypographyModule, SharedModule, RouterModule],
|
||||
imports: [
|
||||
IconModule,
|
||||
CommonModule,
|
||||
TypographyModule,
|
||||
SharedModule,
|
||||
RouterModule,
|
||||
TrackEventDirective,
|
||||
],
|
||||
})
|
||||
export class AnonLayoutComponent implements OnInit, OnChanges {
|
||||
@HostBinding("class")
|
||||
|
||||
Reference in New Issue
Block a user