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';
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({

View File

@ -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],

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