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:
parent
824c5e5ff9
commit
950ab69ea7
@ -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({
|
||||||
|
@ -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],
|
||||||
|
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