0
I am starting with Ionic / Angularjs and am creating a function to display an alert, in order to check if the "environment" is correct. However, when starting the APP, I check the console that is generating the following "Uncaught Typeerror: angular.Moule is not a Function at core.js:1"
index.html
<!DOCTYPE html>
   <html>
     <head>  
      ...  
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script> 
      <script src="assets/js/core.js"></script>
     </head>
     <body ng-app="app" ng-controller="ctrl">
         <app-root></app-root> 
     </body> 
   </html>
page.html
<ion-content>
    <div ng-app="app" ng-controller="ctrl">
      <button ng-click="clickFunction()">Click me!</button>
    </div>     
</ion-content> 
core js.
var app = angular.moule('app', []);
app.controller('ctrl', ['$scope', function($scope) {
    $scope.clickFunction = function() {
        alert("Clicado");
    }
}]);
I am using VSC and it was in the correct color. Taking advantage.. I changed the name, and now the error message does not appear. But the alert does not appear.
– RRV
Why is using Angularjs in Ionic?
– LuqDragon
I am starting, studying and working on an idea for an APP.. what would you suggest to develop in Ionic? Can I show you the project
– RRV