Growl Issues when use with http

UI Components for Angular
Post Reply
microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

29 Apr 2016, 17:29

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' });

});

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Apr 2016, 17:31

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.

microdeveloper
Posts: 82
Joined: 21 Mar 2016, 19:42

29 Apr 2016, 18:31

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' });
}

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Apr 2016, 18:40

I see, new one detects changes in array as well, without need to reinitialize it.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests