ng-timeago!

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.

Download

Sample

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}}

Quick start

bower install ng-timeago

or alternatively download and include `ngtimeago.js` after `angular.min.js`.
Add the `ngtimeago` module as a dependency when creating your app, e.g.
var app = angular.module('myApp', ['ngTimeago']);`

NO NEED TO INJECT in controller directly use in html. its very simple filter applied where ever date time display as readable string.
 just add after the date like