diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/route/_entityFile_-routing-resolve.service.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/route/_entityFile_-routing-resolve.service.ts.ejs index a60fa35d81d7..7f194f737c20 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/route/_entityFile_-routing-resolve.service.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/route/_entityFile_-routing-resolve.service.ts.ejs @@ -25,7 +25,7 @@ import { mergeMap } from 'rxjs/operators'; import { I<%= entityAngularName %> } from '../<%= entityFileName %>.model'; import { <%= entityAngularName %>Service } from '../service/<%= entityFileName %>.service'; -export const <%= entityInstance %>Resolve = (route: ActivatedRouteSnapshot): Observable> => { +const <%= entityInstance %>Resolve = (route: ActivatedRouteSnapshot): Observable> => { const id = route.params['<%= primaryKey.name %>']; if (id) { return inject(<%= entityAngularName %>Service)