mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-05 00:41:15 +02:00
added vault component
This commit is contained in:
parent
824c5e5ff9
commit
950ab69ea7
@ -5,10 +5,12 @@ import {
|
||||
} from '@angular/router';
|
||||
|
||||
import { LoginComponent } from './accounts/login.component';
|
||||
import { VaultComponent } from './vault/vault.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/login', pathMatch: 'full' },
|
||||
{ path: 'login', component: LoginComponent },
|
||||
{ path: 'vault', component: VaultComponent },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
@ -6,6 +6,7 @@ import { NgModule } from '@angular/core';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { LoginComponent } from './accounts/login.component';
|
||||
import { VaultComponent } from './vault/vault.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@ -15,6 +16,7 @@ import { LoginComponent } from './accounts/login.component';
|
||||
declarations: [
|
||||
AppComponent,
|
||||
LoginComponent,
|
||||
VaultComponent,
|
||||
],
|
||||
providers: [],
|
||||
bootstrap: [AppComponent],
|
||||
|
1
src/app/vault/vault.component.html
Normal file
1
src/app/vault/vault.component.html
Normal file
@ -0,0 +1 @@
|
||||
My Vault!!
|
16
src/app/vault/vault.component.ts
Normal file
16
src/app/vault/vault.component.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import * as template from './vault.component.html';
|
||||
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-vault',
|
||||
template: template,
|
||||
})
|
||||
export class VaultComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
// TODO?
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user