add config module
This commit is contained in:
parent
2e4997da9c
commit
cb15a976f1
@ -73,10 +73,10 @@ export async function createBootModule(
|
||||
providers.push({ provide: APP_PIPE, useValue: pipe });
|
||||
}
|
||||
|
||||
if (globals.intercepter !== null) {
|
||||
if (globals.interceptor !== null) {
|
||||
providers.push({
|
||||
provide: APP_INTERCEPTOR,
|
||||
useClass: globals.intercepter ?? AppInterceptor,
|
||||
useClass: globals.interceptor ?? AppInterceptor,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,7 @@ export interface CreateOptions {
|
||||
globals?: {
|
||||
pipe?: (configure: Configure) => PipeTransform<any> | null;
|
||||
|
||||
intercepter?: Type<any> | null;
|
||||
interceptor?: Type<any> | null;
|
||||
|
||||
filter?: Type<any> | null;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user