angular-flash
angular-flash copied to clipboard
Add optional timeout
Added an optional timeout value so that current implementations will not break. Any idea how to test this properly?
Hey there,
Just to give you an update on this PR... I'm working a bit more on it as the flash function can be used with a single parameter (flash('Done!')
) and supporting flash('Done!', 2000)
would be desired as well...
I'm also looking into using angular's $timeout.flush()
for testing...
Good stuff! Let me know if you need anything.
Heya, any update on the flash timeout?
Hey! Sorry about that!
I actually got the single and multiple parameters working but was facing some problems with the $timeout.flush()
when testing... Then I got swamped with work and end up not coming back to it. I'll try to push something up tonight (PST)!
No worries, take your time : )