A
A
Artem Komarov2017-07-19 12:36:37
Angular
Artem Komarov, 2017-07-19 12:36:37

Opened an old project on angular 1 got an error, what could be the problem?

in app.js code like this:

angular.module('OEWeb', ['ngTouch', 'ngAnimate', 'ngDraggable', 'ngFlatDatepicker', 'Services']);

in controllers everything is standard:
angular.module('OEWeb').controller('TileCtrl', ['$scope', 'msg', 'tiles',
  function($scope, msg, tiles) {
  // ...
  }
]);

in services too:
var Services = angular.module('Services', []);
Services.factory('tiles', ['$http',
  function($http) {
  // ...
  }
]);

However, when I run it, I get the following error:

libs.min.js:1 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.8/$injector/module...

in Google everyone writes about the ng module, like you can’t add anything to it, but I don’t use it ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Yamchuk, 2017-07-20
@tomgif

perhaps one of the modules that is used in the project is not connected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question