Good afternoon Community, I come with this error.
In my iedu-angular.js file I have the following:
angular.module('facturasiModulo', [])
.controller('IEDUCtrl', ['$scope', IEDUCtrl]);
function IEDUCtrl($scope){
console.log("Aqui aun vivo");
$scope.nivelEducativo = ["Prescolar", "Primaria", "Secundaria","Profesional Tecnico", "Bachillerato o su Equivalente"];
$scope.currentNivelEducativo = "Prescolar";
console.log("Termina tu JavaScrpit");
}
And I command it to call my iedu.html.haml like this:
%div#iedu(ng-controller="IEDUCtrl")
When I load the page I get the following error in the JavaScript console:
Argument 'IEDUCtrl' is not a function, got undefined
I hope you can help me.
Cheers
Make sure you have in your
HAML
Well people, apparently my problem was solved in the following way, I had to add the following line of code:
In the applications.js file of my project.
Thank you all for your help and recommendations.