bug fixed

This commit is contained in:
richard-loafle 2020-04-08 08:46:30 +09:00
parent 85f56303e1
commit 09bcca908e
6 changed files with 26 additions and 12 deletions

View File

@ -13,7 +13,7 @@ const routes: Routes = [
component: NoNaviLayoutComponent, component: NoNaviLayoutComponent,
loadChildren: () => loadChildren: () =>
import('./pages/account/account.page.module').then( import('./pages/account/account.page.module').then(
m => m.AppAccountPageModule (m) => m.AppAccountPageModule
) )
}, },
{ {
@ -21,7 +21,7 @@ const routes: Routes = [
component: NoNaviLayoutComponent, component: NoNaviLayoutComponent,
loadChildren: () => loadChildren: () =>
import('./pages/common/common.page.module').then( import('./pages/common/common.page.module').then(
m => m.AppCommonPageModule (m) => m.AppCommonPageModule
) )
}, },
{ {
@ -37,31 +37,43 @@ const routes: Routes = [
path: 'organization', path: 'organization',
loadChildren: () => loadChildren: () =>
import('./pages/organization/organization.page.module').then( import('./pages/organization/organization.page.module').then(
m => m.AppOrganizationPageModule (m) => m.AppOrganizationPageModule
) )
}, },
{ {
path: 'group', path: 'group',
loadChildren: () => loadChildren: () =>
import('./pages/group/group.page.module').then( import('./pages/group/group.page.module').then(
m => m.AppGroupPageModule (m) => m.AppGroupPageModule
)
},
{
path: 'group',
outlet: 'subContent',
loadChildren: () =>
import('./pages/group/group.page.module').then(
(m) => m.AppGroupPageModule
) )
}, },
{ {
path: 'chat', path: 'chat',
loadChildren: () => loadChildren: () =>
import('./pages/chat/chat.page.module').then(m => m.AppChatPageModule) import('./pages/chat/chat.page.module').then(
(m) => m.AppChatPageModule
)
}, },
{ {
path: 'call', path: 'call',
loadChildren: () => loadChildren: () =>
import('./pages/call/call.page.module').then(m => m.AppCallPageModule) import('./pages/call/call.page.module').then(
(m) => m.AppCallPageModule
)
}, },
{ {
path: 'message', path: 'message',
loadChildren: () => loadChildren: () =>
import('./pages/message/message.page.module').then( import('./pages/message/message.page.module').then(
m => m.AppMessagePageModule (m) => m.AppMessagePageModule
) )
} }
] ]

View File

@ -5,7 +5,7 @@ import { IndexPageComponent } from './components/index.page.component';
const routes: Routes = [ const routes: Routes = [
{ {
path: '', path: '**',
component: IndexPageComponent component: IndexPageComponent
} }
]; ];

View File

@ -2,7 +2,7 @@ import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing'; import { RouterTestingModule } from '@angular/router/testing';
import { IndexPageComponent } from './index.page.component'; import { IndexPageComponent } from './index.page.component';
describe('app::pages::organization::IndexPageComponent', () => { describe('app::pages::chat::IndexPageComponent', () => {
beforeEach(async(() => { beforeEach(async(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [RouterTestingModule], imports: [RouterTestingModule],

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-pages-organization-index', selector: 'app-pages-chat-index',
templateUrl: './index.page.component.html', templateUrl: './index.page.component.html',
styleUrls: ['./index.page.component.scss'] styleUrls: ['./index.page.component.scss']
}) })

View File

@ -1 +1,3 @@
Index page of group is works! <div>
index of group
</div>

View File

@ -2,7 +2,7 @@ import { Component } from '@angular/core';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
@Component({ @Component({
selector: 'app-pages-organization-index', selector: 'app-pages-group-index',
templateUrl: './index.page.component.html', templateUrl: './index.page.component.html',
styleUrls: ['./index.page.component.scss'] styleUrls: ['./index.page.component.scss']
}) })