Comments (2)
Hi Yevhenii, thanks for opening the issue. I'm hesitant to make clearing on a transition the default functionality because a lot of the time it's beneficial to do the opposite.
In your case you're saving the model on route one, showing the message, and then transitioning to route two. So if we were to clear the queue on transition the message wouldn't really show at all. Do you mean you only want the message to show on route two until the user navigates again to a third route and then the message should disappear?
To clear the queue there is a public method called clear. However, it needs to be more public (i.e. injected into controllers) so that's one issue I see.
from ember-flash-messages.
@lessless The 0.6.0 release (merged in #17) has increased public capabilities in a new service documented here. This should give you enough to show and hide messages at specific times. Please le me know if you have any questions.
from ember-flash-messages.
Related Issues (16)
- missing import of 'Em' HOT 6
- Notify not showing up HOT 5
- DEPRECATION warning HOT 2
- Remove jquery dependency HOT 1
- Ember warning after message removed from queue HOT 1
- Install fails HOT 12
- Install conflict with ember-cli-list-view HOT 1
- Async test helpers waiting forever HOT 7
- Refactor as a service HOT 2
- classNameBindings not working in flash-message.js HOT 8
- Message object initiation HOT 1
- Specify template as "content' in JS API HOT 3
- Override flash-message template HOT 1
- Error: Attempting to inject an unknown injection: `service:flashMessageQueue` HOT 4
- Class names use underscores in css but dashes in HTML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-flash-messages.