Hello!
You're missing the $http dependency and specify the ngRoute in the module
dependencies:
var app = angular.module('test', ['ngRoute']);
app.controller('OrderFormController', function($scope, $http) {
$http.get('./cgi-bin/myscript.py').success( function(response) {
$scope.services = response;
});
});
El domingo, 24 de enero de 2016, 9:41:00 (UTC-3), [email protected] escribió:
>
> Hi,
> I am just writing my first angular app and I am stuck because I get this
> error:
>
> Error: [$injector:modulerr]
> http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=app.
> <http://www.google.com/url?q=http%3A%2F%2Ferrors.angularjs.org%2F1.3.15%2F%24injector%2Fmodulerr%3Fp0%3Dapp.&sa=D&sntz=1&usg=AFQjCNG0l4oSSA4jwdjvPMzyKMDkgsTepA>
> ..
>
> I have this code:
> <script src="
> https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js
> "></script>
> <script src="
> https://ajax.googleapis.com/ajax/libs/angularjs/1.2.1/angular-route.min.js
> "></script>
> <script type="text/javascript">
> var app = angular.module('test', []);
> app.controller('OrderFormController', function($scope) {
> $http.get('./cgi-bin/myscript.py').success( function(response) {
> $scope.services = response;
> });
> });
> ---------------------
> any ideas?
>
--
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.