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

Using variables in flash message template #10

Open
mittelman29 opened this issue Dec 28, 2016 · 1 comment
Open

Using variables in flash message template #10

mittelman29 opened this issue Dec 28, 2016 · 1 comment

Comments

@mittelman29
Copy link

Not sure if this is possible, but I'd like to use variables like below:

{{ result.result }} :: {{ result.messages }}

I could then call the service like this:

this._flashMessagesService.show();

Is there a way to make this behave this way? I'd just put the variables in the .show() args, but they are results of an observable and I can't get it to work that way.

Thx

@sathwik77
Copy link

this._flashMessagesService.show(variable, { cssClass: 'alert-danger', timeout: 5000 });

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

2 participants