O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Moving the content from the default page to the ASP.NET MVC view

In the preceding section, we were able to run the application and noticed that the default view is served is the ASP.NET MVC Index view of HomeController. Now, let's update the Index.cshtml view with the content of the Index.html file located under the wwwroot folder. The updated Index.cshtml is shown here:

@{   
    Layout = null;   
}   
<!DOCTYPE html>   
<html>   
<head>   
    <title>My   Todo</title>   
    <script>document.write('<base   href="' +  document.location + '" />');</script> <meta charset="UTF-8"> <!-- Polyfills --> <script src="libs/shim.min.js"></script> <script src="libs/zone.min.js"></script> <script src="libs/system.src.js"></script> <script src="systemjs.config.js"></script> <script> System.import('main.js').catch(function(err){ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required