Just getting started with AngularJS and looking to create a self-closing message. How can this be accomplished?
I'm aiming for similar results as the question found here:
How to Automatically Close Alerts using Twitter Bootstrap
However, I want to achieve this using AngularJS only.
Currently, I have tried using the following code with an array but it's not working as expected:
$timeout(function () {
stack.push(messages.pop());
checkStack();
},5000);