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.