user1005310 user1005310 - 2 months ago 22
AngularJS Question

Rendering the script bundle in a plain HTML page

I am using HTML pages in my angularjs MVC application instead of cshtml page.
Now I am trying to bundle all the js files , I know for script rendering I can use this syntax

@System.Web.Optimization.Scripts.Render("~/app/main.js")


What is the equivalent of using @script.render on a plain htm page ?

Answer

You can just use a normal script tag to load your Javascript.

<script src="app/main.js"></script>

Comments