How can I implement angularJS without NuGet in a folder in MVC

Issue

I have a new folder named angularJS and I don’t know how to implement it without using a NuGet Packages.

Solution

Just add reference of angular.js to your layout or any cshtml file you need.

Here is working sample without 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>

Answered By – Alireza Ahmadi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published