ahricvirindi / generic-project

Personal playground for .Net MVC and AngularJS...just some fluff.
0 stars 1 forks source link

Add flash messages. #15

Open ahricvirindi opened 10 years ago

ahricvirindi commented 10 years ago

Need to add the ability to display a message after being redirected to a new view. These can be of any type (error, warning, info, success).

This is for mid-workflow data entry scenarios, like a "Peep entered successfully! Please enter their address now" being displayed after automatically forwarded to the Address modal.

bradgearon commented 10 years ago

Would this be on the server, just add a call to the notification service on load? Or perhaps some arbitrary array on the page in json form? Or perhaps a directive you can write multiple of on the page? Just ideas... thoughts?

ahricvirindi commented 10 years ago

Multiples are definitely possible. The problem I was thinking through if we do it on load/navigate/whatever, is what if we're going to hit multiple (3) routes in a single actual response action (yes I know, shouldn't work that way)...then when it hits the 2nd one in the middle, grabs the pending notification, then the notification queue has been cleared by the time it gets to the actual final view. Was just a random scenario.

On Thu, Feb 20, 2014 at 10:31 PM, Brad Gearon notifications@github.comwrote:

Would this be on the server, just add a call to the notification service on load? Or perhaps some arbitrary array on the page in json form? Or perhaps a directive you can write multiple of on the page? Just ideas... thoughts?

Reply to this email directly or view it on GitHubhttps://github.com/espies/generic-project/issues/15#issuecomment-35698416 .