**This works:**
<script src="Scripts/angular.js"></script>
**But not this one:**
<script src="~/Scripts/angular.js"></script>
Can anyone explain why the second one not's working?
**This works:**
<script src="Scripts/angular.js"></script>
**But not this one:**
<script src="~/Scripts/angular.js"></script>
Can anyone explain why the second one not's working?
If you're referring to the "Scripts" directory in MVC app from the layout you can just reference as <script src="/Scripts/angular.js"></script>
Angular will not recognize the tilde in your script path. You'll need to resolve it traditionally.