my application script that runs the 4 directives
angular.module('angularApp', ['comment','commentList', 'commentForm',
'commentBox', XXXXXXX])
.run(function($rootScope){
$rootScope.comments = [{*}*];
});
I want to add this 5th directive moment-module for angular moments.I tried
adding it as a 5th directive and it can't find the moment-module.
angular
.module('moment-module', [])
.factory('moment', function ($window) {
return $window.moment;
});
I don't understand where it gets injected into?
tnx,
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.