我是AngularJs的新手,这是我的第一个代码。我发现了一个在线 教程其中模块被声明这样Angularjs。模块没有显示在intellisense
变种的myapp = angular.module( '对myApp',[])
当I型角。 ,我无法将.module显示在我的智能感知 中,而是获取$$ modulename。
我做错了什么?当我输入模块时,代码实际运行。
这是我的代码如下。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Practicing Angular</title>
<script src="../Scripts/angular.min.js"></script>
</head>
<body>
<h1>Hello This is the first page</h1>
<div ng-app="myApp" ng-controller="myCtrl">
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
<br>
Full Name: {{firstName + " " + lastName}}
</div>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function ($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>
</body>
</html>
什么都没有显示出来 – Sajeetharan
当我输入角度时,.module没有出现在intellisense中。 ... – user2320476