Мне до сих пор неясно, почему, но все стало работать в браузере c после того, как я разбил большой код *.route.ts
на несколько:
import { Route, Routes } from '@angular/router';
import {
CreateKindergartenclassComponent,
DetailKindergartenclassComponent,
ListKindergartenclassComponent,
SelectKindergartenclassComponent
} from 'app/businesslogic';
import { UserRouteAccessService } from 'app/core';
import { KindergartenClassResolve } from 'app/entities/kindergarten-class';
import { CommentResolve } from 'app/entities/comment';
export const createKindergartenclassRoute: Route = {
path: 'teacher/class/create',
component: CreateKindergartenclassComponent,
data: {
authorities: ['ROLE_TEACHER_PAID'],
pageTitle: 'businesslogic.create.kindergartenclass.title'
},
canActivate: [UserRouteAccessService]
};
и
import { Route, Routes } from '@angular/router';
import {
CreateKindergartenclassComponent,
DetailKindergartenclassComponent,
ListKindergartenclassComponent,
SelectKindergartenclassComponent
} from 'app/businesslogic';
import { UserRouteAccessService } from 'app/core';
import { KindergartenClassResolve } from 'app/entities/kindergarten-class';
import { CommentResolve } from 'app/entities/comment';
export const listKindergartenclassCommentPopupRoute: Route = {
path: 'teacher/classes/:id/delete',
component: ListKindergartenclassComponent,
resolve: {
comment: CommentResolve
},
data: {
authorities: ['ROLE_USER', 'ROLE_TEACHER_PAID'],
pageTitle: 'mentalApp.comment.home.title'
},
canActivate: [UserRouteAccessService]
};
export const listKindergartenclassCommentPopupRouteChild: Route = {
path: 'child/classes/:id/delete',
component: ListKindergartenclassComponent,
resolve: {
comment: CommentResolve
},
data: {
authorities: ['ROLE_USER', 'ROLE_CHILD_PAID'],
pageTitle: 'mentalApp.comment.home.title'
},
canActivate: [UserRouteAccessService]
};
и
import { Route, Routes } from '@angular/router';
import {
CreateKindergartenclassComponent,
DetailKindergartenclassComponent,
ListKindergartenclassComponent,
SelectKindergartenclassComponent
} from 'app/businesslogic';
import { UserRouteAccessService } from 'app/core';
import { KindergartenClassResolve } from 'app/entities/kindergarten-class';
import { CommentResolve } from 'app/entities/comment';
export const detailKindergartenclassRoute: Route = {
path: 'teacher/class/:id',
component: DetailKindergartenclassComponent,
data: {
authorities: ['ROLE_TEACHER_PAID'],
pageTitle: 'businesslogic.kindergartenclass.title'
},
resolve: {
kindergartenClass: KindergartenClassResolve
},
canActivate: [UserRouteAccessService]
};
export const detailKindergartenclassRouteChild: Route = {
path: 'child/class/:id',
component: DetailKindergartenclassComponent,
data: {
authorities: ['ROLE_CHILD_PAID'],
pageTitle: 'businesslogic.kindergartenclass.title'
},
resolve: {
kindergartenClass: KindergartenClassResolve
},
canActivate: [UserRouteAccessService]
};
и
import { Route, Routes } from '@angular/router';
import {
CreateKindergartenclassComponent,
DetailKindergartenclassComponent,
ListKindergartenclassComponent,
SelectKindergartenclassComponent
} from 'app/businesslogic';
import { UserRouteAccessService } from 'app/core';
import { KindergartenClassResolve } from 'app/entities/kindergarten-class';
import { CommentResolve } from 'app/entities/comment';
export const listKindergartenclassRoute: Route = {
path: 'teacher/classes',
component: ListKindergartenclassComponent,
data: {
authorities: ['ROLE_TEACHER_PAID'],
pageTitle: 'businesslogic.list.kindergartenclass.title'
},
resolve: {
kindergartenClass: KindergartenClassResolve
},
canActivate: [UserRouteAccessService]
};
export const listKindergartenclassRouteChild: Route = {
path: 'child/classes',
component: ListKindergartenclassComponent,
data: {
authorities: ['ROLE_CHILD_PAID'],
pageTitle: 'businesslogic.list.kindergartenclass.title'
},
resolve: {
kindergartenClass: KindergartenClassResolve
},
canActivate: [UserRouteAccessService]
};
и
import { Route, Routes } from '@angular/router';
import {
CreateKindergartenclassComponent,
DetailKindergartenclassComponent,
ListKindergartenclassComponent,
SelectKindergartenclassComponent
} from 'app/businesslogic';
import { UserRouteAccessService } from 'app/core';
import { KindergartenClassResolve } from 'app/entities/kindergarten-class';
import { CommentResolve } from 'app/entities/comment';
export const selectKindergartenclassRoute: Route = {
path: 'child/select',
component: SelectKindergartenclassComponent,
data: {
authorities: ['ROLE_CHILD_PAID'],
pageTitle: 'businesslogic.list.kindergartenclass.title'
},
resolve: {
kindergartenClass: KindergartenClassResolve
},
canActivate: [UserRouteAccessService]
};
все еще Angular волхвов c для меня, и я до сих пор не знаю какое конкретное расщепление добилось цели.