bitwarden-estensione-browser/bitwarden_license/bit-web/src/app/secrets-manager/overview/section.component.ts

19 lines
364 B
TypeScript

import { Component, Input } from "@angular/core";
@Component({
selector: "sm-section",
templateUrl: "./section.component.html",
})
export class SectionComponent {
@Input() open = true;
/**
* UID for `[attr.aria-controls]`
*/
protected contentId = Math.random().toString(36).substring(2);
protected toggle() {
this.open = !this.open;
}
}