import {timeAgo} from './time-ago.ts'; ... // Pass Date Object and it returns a string. timeAgo(new Date());
You need to pass a date object and this method returns a string. This is compatible with Angular 5.0.3.
import {timeAgo} from './time-ago.ts'; ... // Pass Date Object and it returns a string. timeAgo(new Date());
You need to pass a date object and this method returns a string. This is compatible with Angular 5.0.3.