thanks,  I did just that but got an error. I added moment-module to the 
angularApp module array. It appears to load the two moment modules from the 
index.html.  
Don't know why bower can't put it at the top directory wants to add another 
bower directory but it did load but it says injection error? For the 
moment-module I just made a directive like the other 4 but I put it below.  
----error msg----
Navigated to 
http://localhost:9000/?author=Janis+Rough&msg=something+new&date=%7B%7Bcomment.date%7D%7D
localhost/:32 GET 
http://localhost:9000/bower_components/bowyer_components/angular-route/angular-moment.js
 
localhost/:33 GET 
http://localhost:9000/bower_components/angular-route/bower_components/moment.js 
angular.js:80 Uncaught Error: [$injector:modulerr] Failed to instantiate 
module angularApp due to:
Error: [$injector:modulerr] Failed to instantiate module moment-module due 
to:
Error: [$injector:nomod] Module 'moment-module' is not available! You 
either misspelled the module name or forgot to load it. If registering a 
module ensure that you specify the dependencies as the second argument.

------- moment-module  directive-----

'use strict';

/**
 * @ngdoc directive
 * @name angularApp.directive:moment-module
 * @description
 * # moment-module
 */
angular
  .module('moment-module', [])
  .factory('moment', function ($window) {
    return $window.moment;
  });


On Sunday, April 24, 2016 at 8:49:25 PM UTC-7, Sander Elias wrote:
>
> Hi Janis,
>
> You should add 'moment-module' to your angualrApp module's module array. 
> From that moment on, it's available to the injector, and can you inject it 
> where ever you need it.
>
> Regards
> Sander
>

-- 
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.

Reply via email to