1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

modal component

This commit is contained in:
Kyle Spearrin
2018-01-29 09:33:43 -05:00
parent 752e9a726a
commit c50b478a4d
9 changed files with 550 additions and 2 deletions

View 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);
}
}