angularjs - $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
解决方案
推荐阅读
- java - 如何在我的程序中只创建一个 Scanner 对象
- angular - 我可以在Angular插值之前获取元素的内部html吗
- c# - 当下拉列表基于 Jaus Gridex 中的其他列值触发时,如何过滤列的 ValueList?
- java - 如何将自定义参数添加到通过 maven Surefire 插件生成的 junit 报告中?
- angularjs - 如何在 AngularJS 中实现 azure B2C Sign_In 策略?
- mysql - MySQL 从两个不同的表中获取结果
- php - mysqli_connect(): (HY000/1045): Access denied for user... - mysql shell 工作
- angular - 路由模块中的装饰器不支持函数调用
- ruby-on-rails - 渲染向导或视图取决于我在 Rails 中的选择输入
- reactjs - React Hook useEffect 缺少依赖项:'props'。包括它或删除依赖数组。useEffect 中的道具没有数据