Hi Growl is nice but the issue is when i use on simple button click or on component load so everything works fine but when i use with http service response so it does not work.
this._AppService.saveSuperBill(bill, superBillID).subscribe(
response => {
this._IsLoading = false;
this.msgs.push({ severity: 'info', summary: 'Lumi Business Module', detail: 'SuperBill saved Successfully' });
});
Growl Issues when use with http
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Growl is reimplemented in beta4 as a native angular2 component, I'm not sure what the problem is with the old growl but the new one has proper change detection so please try with beta4 next week when it comes on monday.
-
- Posts: 82
- Joined: 21 Mar 2016, 19:42
Well the issue was that we have to reset this.msgs = []; each time we call Growl and that's it.
Like this.
showdeleteInfo() {
this.msgs = [];
this.msgs.push({ severity: 'info', summary: 'Alert', detail: 'Encounter deleted Successfully' });
}
Like this.
showdeleteInfo() {
this.msgs = [];
this.msgs.push({ severity: 'info', summary: 'Alert', detail: 'Encounter deleted Successfully' });
}
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I see, new one detects changes in array as well, without need to reinitialize it.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests