Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Display flash message referenced in show() method #47

Open
shahkeyur opened this issue Oct 1, 2018 · 0 comments
Open

Comments

@shahkeyur
Copy link

shahkeyur commented Oct 1, 2018

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

<div id="flash-fixed" >  <!-- or -->  <div class="flash-fixed" > 
<flash-messages></flash-messages>
</div>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant