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
I am wondering if I can only show flash message which is referenced while invoking show() method. The name of container should be specified while calling show() method.
e.g
In any-component.html <flash-messages name="flash-fixed"></flash-messages>
or
this._flashMessagesService.show('We are in about component!', { cssClass: 'your-css-class' , container: 'flash-fixed' });
The reason behind doing this is, flash-messages cannot be used separately in different components (correct if I am wrong), if used in different components and show() method is called then message would appear in all the components but expected behavior is it should be show message in specified component.
The text was updated successfully, but these errors were encountered:
Hi,
I am wondering if I can only show flash message which is referenced while invoking show() method. The name of container should be specified while calling show() method.
e.g
In any-component.html
<flash-messages name="flash-fixed"></flash-messages>
or
In any-component.ts :
this._flashMessagesService.show('We are in about component!', { cssClass: 'your-css-class' , container: 'flash-fixed' });
The reason behind doing this is, flash-messages cannot be used separately in different components (correct if I am wrong), if used in different components and show() method is called then message would appear in all the components but expected behavior is it should be show message in specified component.
The text was updated successfully, but these errors were encountered: