This site describes our support for the AngularJS (1.x) framework. Visit for information on our latest version.


The moment module allows you to use the Moment.js library to handle dates in JavaScript. SKY UX locale files automatically include their matching moment locale definitions. When including a SKY UX locale file, the moment locale is also globally set.


Today's moment date is {{momentCtrl.momentDate}}.


<div ng-controller="MomentTestController as momentCtrl">
        Today's moment date is {{momentCtrl.momentDate}}.


/*global angular */

(function () {
    'use strict';

    function MomentTestController(bbMoment) {
        var self = this;

        self.momentDate = bbMoment().format('MMMM D, YYYY, h:mm:ss a');

    MomentTestController.$inject = ['bbMoment'];

    angular.module('stache').controller('MomentTestController', MomentTestController);