如何在 MVC 的文件夹中实现没有 NuGet 的 angularJS
How can I implement angularJS without NuGet in a folder in MVC
我有一个名为 angularJS 的新文件夹,我不知道如何在不使用 NuGet 包的情况下实现它。
只需将 angular.js
的引用添加到您的布局或您需要的任何 cshtml
文件中。
这是没有 NuGet Packages
的工作示例
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<div ng-app="">
<p>Input something in the input box:</p>
<p>Name : <input type="text" ng-model="name" placeholder="Enter name here"></p>
<h1>Hello {{name}}</h1>
</div>
我有一个名为 angularJS 的新文件夹,我不知道如何在不使用 NuGet 包的情况下实现它。
只需将 angular.js
的引用添加到您的布局或您需要的任何 cshtml
文件中。
这是没有 NuGet Packages
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<div ng-app="">
<p>Input something in the input box:</p>
<p>Name : <input type="text" ng-model="name" placeholder="Enter name here"></p>
<h1>Hello {{name}}</h1>
</div>