首页 > 解决方案 > $injector:modulerr 是什么意思?

问题描述

html代码

var myApps = angular.module('myApps',[]);

myApps.controller('myAppController', function($scope){
    $scope.message = "Hello World";
});
<html lang="en" ng-app="myApps">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="app/lib/angular.min.js"></script> -->
    <script src="//unpkg.com/angular/angular.js"></script>
    <!-- <script src="app/app.js"></script> -->
    
</head>
<body>
 <div ng-controller="myAppController">
     <p>{{message}}</p>
 </div>
    
</body>
</html>

我收到此错误:

错误:[$injector:modulerr] http://errors.angularjs.org/1.7.9/$injector/modulerr?p0=myAp...Practice%2Fmodule%2Fapp%2Flib%2Fangular.min.js%3A38%3A444%0A

标签: angularjs

解决方案


推荐阅读