mirror of
https://github.com/bitwarden/web
synced 2025-12-31 15:43:14 +00:00
Fix lazy loading of routing modules
This commit is contained in:
@@ -2,11 +2,10 @@ import { NgModule } from "@angular/core";
|
||||
|
||||
import { VaultModule } from "../../vault.module";
|
||||
|
||||
import { IndividualVaultRoutingModule } from "./individual-vault-routing.module";
|
||||
import { IndividualVaultComponent } from "./individual-vault.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [VaultModule, IndividualVaultRoutingModule],
|
||||
imports: [VaultModule],
|
||||
declarations: [IndividualVaultComponent],
|
||||
exports: [IndividualVaultComponent],
|
||||
})
|
||||
|
||||
@@ -2,11 +2,10 @@ import { NgModule } from "@angular/core";
|
||||
|
||||
import { VaultModule } from "../../vault.module";
|
||||
|
||||
import { OrganizationVaultRoutingModule } from "./organization-vault-routing.module";
|
||||
import { OrganizationVaultComponent } from "./organization-vault.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [VaultModule, OrganizationVaultRoutingModule],
|
||||
imports: [VaultModule],
|
||||
declarations: [OrganizationVaultComponent],
|
||||
exports: [OrganizationVaultComponent],
|
||||
})
|
||||
|
||||
@@ -40,8 +40,11 @@ const routes: Routes = [
|
||||
{
|
||||
path: "vault",
|
||||
loadChildren: async () =>
|
||||
(await import("../modules/vault/modules/organization-vault/organization-vault.module"))
|
||||
.OrganizationVaultModule,
|
||||
(
|
||||
await import(
|
||||
"../modules/vault/modules/organization-vault/organization-vault-routing.module"
|
||||
)
|
||||
).OrganizationVaultRoutingModule,
|
||||
},
|
||||
{
|
||||
path: "tools",
|
||||
|
||||
@@ -155,8 +155,8 @@ const routes: Routes = [
|
||||
{
|
||||
path: "vault",
|
||||
loadChildren: async () =>
|
||||
(await import("./modules/vault/modules/individual-vault/individual-vault.module"))
|
||||
.IndividualVaultModule,
|
||||
(await import("./modules/vault/modules/individual-vault/individual-vault-routing.module"))
|
||||
.IndividualVaultRoutingModule,
|
||||
},
|
||||
{ path: "sends", component: SendComponent, data: { title: "Send" } },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user