setTimeout function isnt working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 03:37 AM
I have a div that is false and i make true to appear as a popup onclick - saying copied to clipboard. then i have a setTimeout to make the div dissappear.
Why is the setTimeout taking so long to start? If i take the 300 away the div disappears too quickly. i want the popup to stay for 3 seconds and then disappear.
setTimeout (function(){ $scope.myVar = false; }, 3000);
thanks,
Carol
Labels:
- Labels:
-
Service Portal Development
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 05:56 AM
How long does it take for the div to disappear?