Is an AngularJS module for simple time ago on static data. No directives here, just a filters. Mostly based on various snippets which I found on JSFiddle, with some changes by me.
Input Date | Output string |
---|---|
July 13, 2014 11:13:00 | {{dates[0] | timeago}} |
{{sample1}} | {{dates[1] | timeago}} |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
commented {{dates[0] | timeago}}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
commented {{dates[1] | timeago}}
bower install ng-timeago
var app = angular.module('myApp', ['ngTimeago']);`
just add after the date like