mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
[CL-707] Migrate CL codebase to signals (#15340)
This commit is contained in:
@@ -4,11 +4,11 @@ import { TemplatePortal } from "@angular/cdk/portal";
|
||||
import {
|
||||
Component,
|
||||
ContentChild,
|
||||
Input,
|
||||
OnInit,
|
||||
TemplateRef,
|
||||
ViewChild,
|
||||
ViewContainerRef,
|
||||
input,
|
||||
} from "@angular/core";
|
||||
|
||||
import { TabLabelDirective } from "./tab-label.directive";
|
||||
@@ -21,8 +21,8 @@ import { TabLabelDirective } from "./tab-label.directive";
|
||||
},
|
||||
})
|
||||
export class TabComponent implements OnInit {
|
||||
@Input() disabled = false;
|
||||
@Input("label") textLabel = "";
|
||||
readonly disabled = input(false);
|
||||
readonly textLabel = input("", { alias: "label" });
|
||||
|
||||
/**
|
||||
* Optional tabIndex for the tabPanel that contains this tab's content.
|
||||
@@ -32,7 +32,7 @@ export class TabComponent implements OnInit {
|
||||
*
|
||||
* @remarks See note 4 of https://www.w3.org/WAI/ARIA/apg/patterns/tabpanel/
|
||||
*/
|
||||
@Input() contentTabIndex: number | undefined;
|
||||
readonly contentTabIndex = input<number | undefined>();
|
||||
|
||||
@ViewChild(TemplateRef, { static: true }) implicitContent: TemplateRef<unknown>;
|
||||
@ContentChild(TabLabelDirective) templateLabel: TabLabelDirective;
|
||||
|
||||
Reference in New Issue
Block a user