geomoment-angular

Angular filters and factories for date formatting.
Homepage:
1 person uses it
Author: 6bd4aa3b074535ad53165bd82308f925?d=https%3a%2f%2fidenticons.github.com%2fac44e4719e0efa4b4f290ab48057331a goodeggs
Submitted by: 443070?v=2 demands

geomoment-angular

NPM

An angular.js module for date formatting with explicit timezones; wraps geomoment. For use with browserify.

Assumes that angular is in the global scope (part of window).

examples

setup: javascript // somewhere in your client side code that gets processed by browserify: require('geomoment-angular');

factory: javascript function myController($scope, geomoment) { geomoment.day('2013-02-08'); }

filters: html <strong>{{'2013-02-08T09:30' | formatDate:'America/Los_Angeles':'h:mm:ssa'}}</strong> becomes <strong>9:30:00am</strong> <strong>{{'2013-02-08' | formatDay:'weekday'}}</strong> becomes <strong>Friday</strong>

comments powered by Disqus
This page was last updated about 3 years ago.