Hi Noah !

In first  try :

angular.module('myApp', [
  'ngRoute',
  'ngResource',
  'filters',
  'services',
  'directives',
  'controllers'
])



Le lundi 17 mars 2014 16:12:51 UTC+1, Noah Sepsenwol a écrit :
>
> Im gettting:
>
> Error: [$injector:nomod] Module 'myApp.services' is not available!
>
> *js/app.js*
>
> angular.module('myApp', [
>   'ngRoute',
>   'ngResource',
>   'myApp.filters',
>   'myApp.services',
>   'myApp.directives',
>   'myApp.controllers'
> ])...
>
> (services.js below does load)
>
> *js/services.js*
>
> var catalogService = angular.module( 'catalogService', ['ngResource'] ); 
> catalogService.factory( 'Catalog', ['$resource', function( $resource ) { 
> return $resource( '../api/index.cfm?f=app.catalog', {}, { query: { method: 
> 'GET', params: {}, isArray: true } } ) }] );
>
> *js/controllers.js*
>
> var catalogCtrl = angular.module( 'CatalogCntrl', [ 'catalogService' ]); 
> catalogCtrl.controller('CatalogCtrl',[ '$scope', 'Catalog', function( 
> $scope, Catalog ){ $scope.catalog = Catalog.query(); $scope.orderProp = 
> 'NAME'; } ]);
>
> Try as I might, I can't get past this error. Any ideas?
>
> Thanks,
> Noah
>

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