Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I try to add "fastFadeOut" property it gives error? #73

Open
lakhvir1994 opened this issue Jul 6, 2020 · 0 comments
Open

When I try to add "fastFadeOut" property it gives error? #73

lakhvir1994 opened this issue Jul 6, 2020 · 0 comments

Comments

@lakhvir1994
Copy link

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.

@lakhvir1994 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant