urish / angular-moment

Moment.JS directives for Angular.JS (timeago and more)
MIT License
2.6k stars 397 forks source link

am-time-ago doesn't work #272

Closed essivision closed 7 years ago

essivision commented 7 years ago

I get time like this: $scope.created_at = "2016-10-29 08:12:43" and then it use it in your directive like this: <span am-time-ago="created_at"></span>

some times error me in console:

TypeError: Cannot read property 'utc' of undefined
essivision commented 7 years ago

My problem solved. angular-moment loaded before momentjs

Thanks