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],
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
My Vault!!
|
|
@ -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