I want to make a div appear 10s after the page has loaded. I would like to use angular.
<div class="appearingitem" ng-show="timeduration"></div>
Any ideas how i might accomplish this? Is there any way to trigger, say a function after a set time? I feel like this should be easy, and i've tried googleing but since i'm new to programming I don't know exactly what I'm looking for
Thank you
$timeoutwould help you in this case, by executing desired code in callback with specifiedtimeoutin milliseconds.Code
Make sure you should inject
$timeoutdependency on your controller factory function before using it.