mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
Merge pull request #516 from atmire/AoT-build-errorfix
AoT build error fix
This commit is contained in:
@@ -8,7 +8,21 @@ import { hasValue, isNotEmpty } from '../shared/empty.util';
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{
|
||||
matcher: (url) => {
|
||||
matcher: urlMatcher,
|
||||
canActivate: [LookupGuard],
|
||||
component: ObjectNotFoundComponent }
|
||||
])
|
||||
],
|
||||
providers: [
|
||||
LookupGuard
|
||||
]
|
||||
})
|
||||
|
||||
export class LookupRoutingModule {
|
||||
|
||||
}
|
||||
|
||||
export function urlMatcher(url) {
|
||||
// The expected path is :idType/:id
|
||||
const idType = url[0].path;
|
||||
// Allow for handles that are delimited with a forward slash.
|
||||
@@ -26,16 +40,4 @@ import { hasValue, isNotEmpty } from '../shared/empty.util';
|
||||
};
|
||||
}
|
||||
return null;
|
||||
},
|
||||
canActivate: [LookupGuard],
|
||||
component: ObjectNotFoundComponent }
|
||||
])
|
||||
],
|
||||
providers: [
|
||||
LookupGuard
|
||||
]
|
||||
})
|
||||
|
||||
export class LookupRoutingModule {
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user