I'm trying to run a simple code with angular and this warning appears on the console:
Uncaught Error: [$ injector: modulerr] link $ injector / modulerr? p0 = app & p1 = Error % 3A% 20% ... angular.js: 38
Here's my app.js file:
var app = angular.module('app', []);
My controller:
app.controller('appController', function ($scope, $http, $stateParams){
$scope.pegaCep = function (data) {
$http.get("php/pegaCep.php?cep="+$stateParams.cep).success(function (data){
console.log(data);
});
}
});
Yes, the warning speaks about the wrong injection of the controller, but how wrong?