You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have since found that this error does not happen if you enableinternational support and select a 2nd language to support. If you do not enable international support, you get the above error :(
Error: Error parsing file src\main\webapp\app\admin\user-management\user-management.route.ts: SyntaxError: Type expected. (12:63)
10 |
11 | @Injectable({ providedIn: 'root' })
At: import { Injectable } from '@angular/core';
import { Resolve, ActivatedRouteSnapshot, Routes } from '@angular/router';
import { Observable, of } from 'rxjs';
import { IUser } from './user-management.model';
import { UserManagementService } from './service/user-management.service';
import { UserManagementComponent } from './list/user-management.component';
import { UserManagementDetailComponent } from './detail/user-management-detail.component';
import { UserManagementUpdateComponent } from './update/user-management-update.component';
@Injectable({ providedIn: 'root' })
export class UserManagementResolve implements Resolve<IUser | > {
constructor(private service: UserManagementService) {}
}
export const userManagementRoute: Routes = [
{
path: '',
component: UserManagementComponent,
data: {
pageTitle: 'Users',
},
},
{
path: ':login/view',
component: UserManagementDetailComponent,
resolve: {
user: UserManagementResolve
}
},
{
path: 'new',
component: UserManagementUpdateComponent,
resolve: {
user: UserManagementResolve
}
},
{
path: ':login/edit',
component: UserManagementUpdateComponent,
resolve: {
user: UserManagementResolve
}
}
];
The text was updated successfully, but these errors were encountered: