1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00
Files
browser/libs/components/src/breadcrumbs/breadcrumb.component.ts
2025-02-03 20:11:59 +01:00

34 lines
766 B
TypeScript

// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Component, EventEmitter, Input, Output, TemplateRef, ViewChild } from "@angular/core";
import { QueryParamsHandling } from "@angular/router";
@Component({
selector: "bit-breadcrumb",
templateUrl: "./breadcrumb.component.html",
standalone: true,
})
export class BreadcrumbComponent {
@Input()
icon?: string;
@Input()
route?: string | any[] = undefined;
@Input()
queryParams?: Record<string, string> = {};
@Input()
queryParamsHandling?: QueryParamsHandling;
@Output()
click = new EventEmitter();
@ViewChild(TemplateRef, { static: true }) content: TemplateRef<unknown>;
onClick(args: unknown) {
this.click.next(args);
}
}