federicot / ng-message-center

Message library for AngularJS
4 stars 2 forks source link

Error when use <ngmessagecenter-messages> with different names #7

Open RicardoRFaria opened 9 years ago

RicardoRFaria commented 9 years ago

When I place more than one messagecenter, only the last "name" receives message, and all directives in the screen shows the same message.

<ngmessagecenter-messages></ngmessagecenter-messages>
<ngmessagecenter-messages name="success"></ngmessagecenter-messages>
<ngmessagecenter-messages name="error"></ngmessagecenter-messages>

The error occurs because only one context is created for the controller, and the "error" context overwrite all previous.