python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Auth guard - angular - toastr service is not working
export class AuthGuard implements CanActivate {
constructor(private accountService:AccountService, private toastr:ToastrService){}
canActivate(): Observable<boolean> {
return this.accoun...
Zyad Tarek
Votes: 0
Answers: 0
How to run unit test case for toast message in angular service?
I am working with an app based on Angular 12. I have service called notification service which handles toast messages from ngx-toastr library.
This is how that service looks like:
export class Notific...
johannesMatevosyan
Votes: 0
Answers: 1