Skip to main content
20 events
when toggle format what by license comment
Nov 26, 2018 at 16:02 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 27, 2018 at 16:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Sep 27, 2018 at 14:35 history edited 200_success
edited tags
Sep 26, 2018 at 23:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 27, 2018 at 22:00 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 28, 2018 at 21:01 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 28, 2018 at 20:39 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 29, 2018 at 20:34 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 29, 2018 at 19:56 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 30, 2018 at 19:55 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 28, 2018 at 18:58 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Oct 2, 2016 at 17:27 answer added Aluan Haddad timeline score: 1
Sep 28, 2016 at 13:08 comment added woxxom seems inefficient meaning slow? I doubt that, but you should use JS profiler in devtools for a definitive answer instead of guessing.
Sep 27, 2016 at 15:14 review Close votes
Sep 28, 2016 at 16:28
Sep 27, 2016 at 15:11 comment added Geraint @JosephtheDreamer yeh, it's in the service and the is used by the controller, like this: serviceName._getCases().then(function(res) { $scope.someData = res.data });
Sep 27, 2016 at 14:56 comment added Joseph Are you sure this is working code? $http.get is async. You cannot simply return the result from an async operation.
Sep 27, 2016 at 11:46 comment added Tushar If you just want to show the date to user, this is good. If you want to use the Date in JS too, use forEach or map to iterate over array and parse the date.
Sep 27, 2016 at 10:49 comment added Geraint Thanks, so better to change the view than change the data?
Sep 27, 2016 at 10:45 comment added Tushar I'll suggest you to create a method on controller $scope and call it when showing date in HTML. Ex. in controller $scope.getDate = function(str) { return new Date(str);}; and in HTML <span>{{getDate(fruit.createdOn)}}</span>
Sep 27, 2016 at 10:33 history asked Geraint CC BY-SA 3.0