mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
modal component
This commit is contained in:
31
src/app/vault/password-generator.component.ts
Normal file
31
src/app/vault/password-generator.component.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import * as template from './password-generator.component.html';
|
||||
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
|
||||
import { CipherType } from 'jslib/enums/cipherType';
|
||||
|
||||
import { CollectionService } from 'jslib/abstractions/collection.service';
|
||||
|
||||
@Component({
|
||||
selector: 'password-generator',
|
||||
template: template,
|
||||
})
|
||||
export class PasswordGeneratorComponent implements OnInit {
|
||||
@Input() in: string;
|
||||
@Output() out = new EventEmitter<string>();
|
||||
|
||||
constructor() {
|
||||
// ctor
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
console.log(this.in);
|
||||
setTimeout(() => { this.out.emit('world'); }, 2000);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user