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
Hello,
I am working in angular 8 and I have used this repository, I want to to show and hide loader without fade-in/fade-out effect. So I check the document and find "fastFadeOut" property.
When I add this property in "forRoot" then it gives error in terminal.
ERROR in src/app/app.module.ts(104,3): error TS2322: Type '{ fastFadeOut: boolean; maxTime: number; }' is not assignable to type 'NgxUiLoaderConfig'.
Object literal may only specify known properties, and 'fastFadeOut' does not exist in type 'NgxUiLoaderConfig'.
Any kind of help is appreciated.
The text was updated successfully, but these errors were encountered:
lakhvir1994
changed the title
When I try to add "fastFadeOut" propert it gives error?
When I try to add "fastFadeOut" property it gives error?
Jul 6, 2020
Hello,
I am working in angular 8 and I have used this repository, I want to to show and hide loader without fade-in/fade-out effect. So I check the document and find "fastFadeOut" property.
When I add this property in "forRoot" then it gives error in terminal.
How I use :
import { NgxUiLoaderModule, NgxUiLoaderRouterModule, NgxUiLoaderConfig } from 'ngx-ui-loader';
const ngxUiLoaderConfig: NgxUiLoaderConfig = {
fastFadeOut:true,
maxTime:5000
};
@NgModule({
imports: [
NgxUiLoaderModule.forRoot(ngxUiLoaderConfig),
NgxUiLoaderRouterModule.forRoot({loaderId: 'main'})
]
})
Error :
ERROR in src/app/app.module.ts(104,3): error TS2322: Type '{ fastFadeOut: boolean; maxTime: number; }' is not assignable to type 'NgxUiLoaderConfig'.
Object literal may only specify known properties, and 'fastFadeOut' does not exist in type 'NgxUiLoaderConfig'.
Any kind of help is appreciated.
The text was updated successfully, but these errors were encountered: