Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Page History: Angular Walkthrough

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: Mon, Sep 09, 2013, 12:18 PM


Overview

This article walks through the steps to create a simple Angular-based web app.

Walk-Through

1. Within Visual Studio, create a new app, selecting Web > ASP.NET MVC 4 Web Application. Specify the "Empty" template and the Razor view engine

2. Create a Home controller with an Index method.

3. Create a view for the Home/Index method.

4. In the code block near the top, add a line to set ViewBag.AngularApp

@{
    Layout = null;
    // Add the following line
    ViewBag.AngularApp = "myApp";
}

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.