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

Unable to inject service inside AuthFilter #559

Closed
viralchauhan opened this issue Mar 24, 2022 · 10 comments
Closed

Unable to inject service inside AuthFilter #559

viralchauhan opened this issue Mar 24, 2022 · 10 comments

Comments

@viralchauhan
Copy link

viralchauhan commented Mar 24, 2022

inside OnRequest() unable to use other service like localstorage service or other service. if we use undefined get

we are unable to set dynamic filter

Package Version

@rxweb/@xhrFilter

@viralchauhan
Copy link
Author

do not use this library because due to no one response if you struggle.

@ajayojha
Copy link
Member

@viralchauhan Sorry, I was not available during that time. I hope your issue has been resolved or found an alternative way. If still there is an issue then post the issue in detail.

@viralchauhan
Copy link
Author

@ajayojha Please check first My issues i have clear mention in AuthFilter. i am not able to other service inject dependency injection . for example inside AuthFilter

Constructer(private viewService: ViewService){
//geting viewService is null

}

@ajayojha
Copy link
Member

Please refer to this example. I have created a ViewService Class and this is to be used in HeaderFilter.

@viralchauhan
Copy link
Author

@ajayojha i have used Angular 13.2.2 version this version not work.

@ajayojha
Copy link
Member

Would be great if you share the error detail, the above-provided solution is for getting the service instance instead of null.

@viralchauhan
Copy link
Author

@ajayojha Please verify. i am not able to install RXWEB lib in stackblitz Angular 13

@viralchauhan
Copy link
Author

@ajayojha
Copy link
Member

try the same in the local project.

@ajayojha ajayojha closed this as completed May 9, 2022
@viralchauhan
Copy link
Author

viralchauhan commented Oct 11, 2022 via email

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

2 participants