1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

added vault component

This commit is contained in:
Kyle Spearrin 2018-01-16 16:12:26 -05:00
parent 824c5e5ff9
commit 950ab69ea7
4 changed files with 21 additions and 0 deletions

View File

@ -5,10 +5,12 @@ import {
} from '@angular/router'; } from '@angular/router';
import { LoginComponent } from './accounts/login.component'; import { LoginComponent } from './accounts/login.component';
import { VaultComponent } from './vault/vault.component';
const routes: Routes = [ const routes: Routes = [
{ path: '', redirectTo: '/login', pathMatch: 'full' }, { path: '', redirectTo: '/login', pathMatch: 'full' },
{ path: 'login', component: LoginComponent }, { path: 'login', component: LoginComponent },
{ path: 'vault', component: VaultComponent },
]; ];
@NgModule({ @NgModule({

View File

@ -6,6 +6,7 @@ import { NgModule } from '@angular/core';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
import { LoginComponent } from './accounts/login.component'; import { LoginComponent } from './accounts/login.component';
import { VaultComponent } from './vault/vault.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -15,6 +16,7 @@ import { LoginComponent } from './accounts/login.component';
declarations: [ declarations: [
AppComponent, AppComponent,
LoginComponent, LoginComponent,
VaultComponent,
], ],
providers: [], providers: [],
bootstrap: [AppComponent], bootstrap: [AppComponent],

View File

@ -0,0 +1 @@
My Vault!!

View 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?
}
}