Without looking into Hot Towel, which I had not heard of until now, this is 
the error you get when angular sees no reference to a service or factory 
named 'gantt'.  Though maybe there's a module named gantt being referenced 
correctly, it see no service/factory named 'gantt' hence it finds no 
provider.  A module and service are not the same thing.



On Tuesday, March 18, 2014 7:10:48 AM UTC-6, Jake Peteman wrote:
>
> I'm having major issues implementing custom modules into the Hot Towel 
> angular template. Basically I'm adding them to my app.js:
>
> var app = angular.module('app', [
>>
>>         // Angular modules 
>>
>>         'ngAnimate',        // animations
>>
>>         'ngRoute',          // routing
>>
>>         'ngSanitize',       // sanitizes html bindings (ex: sidebar.js)
>>
>>
>>>         // Custom modules 
>>
>>         'common',           // common functions, logger, spinner
>>
>>         'common.bootstrap', // bootstrap dialog wrapper functions
>>
>>         'gantt',
>>
>>         // 3rd Party Modules
>>
>>         'ui.bootstrap'
>>
>>     ]);
>>
>>
> With gantt being the module in question. This seems to load the module 
> correctly. Then when I'm defining my controller I write:
>
> (function () {
>>     'use strict';
>>     var controllerId = 'maps';
>>     var app = angular.module('app');
>>     app.controller(controllerId, ['common', 'datacontext', 'gantt', 
>> maps]);
>
>     function maps(common, datacontext, gantt) { 
>
>  
> which leads to the following errors:
>
> Error: [$injector:unpr] Unknown provider: ganttProvider <- gantt 
> [app] [HT Error] [$injector:unpr] Unknown provider: ganttProvider <- 
> gantt 
>
> anyone have any idea why this doesn't work?
>
>

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to