請幫助確定,下面的角度Hello World中出了什麼問題!第一個程序。角度實例化模塊錯誤
<html>
\t <head>
\t \t <script type="text/javascript" language="javascript" src="Scripts/angular.js" />
\t \t <script type="text/javascript" language="javascript" src="Scripts/angular-resource.js" />
\t \t <script type="text/javascript" language="javascript" src="Scripts/angular-route.js" />
\t \t <script type="text/javascript" language="javascript" src="Scripts/angular-cookies.js" />
\t \t <script type="text/javascript" language="javascript" src="Scripts/angular-sanitize.js" />
\t \t <script type="text/javascript" language="javascript">
\t \t \t function Student($scope){
\t \t \t \t $scope.Name= 'Akshay';
\t \t \t \t $scope.City= 'Mumbai'; \t \t \t \t
\t \t \t };
\t \t \t
\t \t \t var app = angular.module("myApp");
\t \t \t app.controller("Student", Student)
\t \t </script>
\t </head>
\t <body ng-app="myApp">
\t \t <form>
\t \t <div id="dvStudent" ng-controller="Student">
\t \t \t Name: <input type="text" name="txtStudentName" id="txtStudentName" ng-model="Name" />
\t \t \t City: <input type="text" name="txtStudentCity" id="txtStudentCity" ng-model="City" />
\t \t \t <input type="button" name="btnSave" id="btnStudentSave" value="Save" /> <input type="reset" name="btnReset" id="btnStudentReset" value="Reset" />
\t \t \t <br /> \t \t \t
\t \t \t You have inputed Name: {{Name}} & City: {{City}}
\t \t </div>
\t \t </form>
\t </body>
</html>
這是
angular.js:68 Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:nomod] Module 'myApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.7/$injector/nomod?p0=myApp
我張貼錯誤文本很抱歉,我的職位目前正與錯誤文本編輯。 –