This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
v1.0.0-beta.1: breaking changes, see description
Pre-release
Pre-release
!!! BREAKING CHANGE !!!
Preprocessors, timezones and input format were removed from am-time-ago and all filters. Use the new amFromUnix
, amUtc
, amUtcOffset
, amTimezone
, and amParse
filters instead.
Examples:
<time am-time-ago="myDate" am-format="YYYY-MM-DD">
becomes<time am-time-ago="myDate|amParse:'YYYY-MM-DD'">
<time am-time-ago="myDate" am-preprocess="unix">
becomes<time am-time-ago="myDate|amFromUnix">
{{myDate|amCalendar:'unix'}}
becomes{{myDate|amFromUnix|amCalendar}}
{{myDate|amCalendar:null:'PDT'}}
becomes{{myDate|amTimezone:'PDT'|amCalendar}}
The removal of the preprocessors also affects the other positional parameters of the amTimeAgo
:
{{myDate|amTimeAgo:null:true:fromDate}}
becomes {{myDate|amTimeAgo:true:fromDate}}
.
For more information, please see #174.