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
but the issue is not resolved i have even tried changing the angular versions 7.0.5 to 7.0.7 in project. and in the system i have installed angular latest and tried but same issue, below is the issue i am getting
import { NotificationsService } from 'angular2-notifications';
export class ExampleComponent implements OnInit {
constructor(private notificationsService: NotificationsService) {}
ngOnInit() {
this.notificationsService.create("Covering Letter", 'Covering Letter is required', 'error', 'yes');
this.notificationsService.create("Covering Letter", 'Covering Letter is required', 'success', 'yes');
this.notificationsService.create("Covering Letter", 'Covering Letter is required', 'warn', 'yes');
}
}
src/app/test1/test1/test1.component.ts(46,69): error TS2345: Argument of type '"error"' is not assignable to parameter of type 'NotificationType'.
src/app/test1/test1/test1.component.ts(49,82): error TS2345: Argument of type '"success"' is not assignable to parameter of type 'NotificationType'.
src/app/test1/test1/test1.component.ts(95,82): error TS2345: Argument of type '"warn"' is not assignable to parameter of type 'NotificationType'.
These are me version installed in my system node, npm and angular version
but the issue is not resolved i have even tried changing the angular versions 7.0.5 to 7.0.7 in project. and in the system i have installed angular latest and tried but same issue, below is the issue i am getting
Below is the package.jason details
the Error is:
Below is the notification service class
And the NotificationType is
The text was updated successfully, but these errors were encountered: