gpt4 book ai didi

angularjs - Uncaught ReferenceError : Angular is not defined

转载 作者:行者123 更新时间:2023-12-03 09:30:35 27 4
gpt4 key购买 nike

我看到了如图所示的错误。 Error displayed in the console.

这是我的 App.js 代码:

 var app = angular.module('PopupDemo',[]);
app.controller('PopupDemoCont',function($scope) {
});

这是我的 HTML 代码:

<html>

<head>
<title>SignUp</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="signup.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="js/App.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/ui-bootstrap-tpls-0.14.3.min.js"></script>
</head>

<body ng-app="PopupDemo">

<div data-toggle="validator" class="container-fluid" ng-controller="PopupDemoCont">
<h1><b>Sign Up</b></h1>
</br>
<form id="form" name="userForm" action="Registration.html">
</body>

</html>

谁能解决这个问题?

最佳答案

你的 app.js 应该低于 Angular 引用

<script src="js/angular.min.js"></script>
<script src="js/App.js"></script>

关于angularjs - Uncaught ReferenceError : Angular is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45008343/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com