Introduction to AngularJS


AngularJs is an open-source platform for building web applications and is maintained by Google. Its purpose is for developing Single Page Applications. It supports Test Driven Development (TDD) and the Model-View-Controller (MVC) pattern. It is provided under the MIT License.

If you want to learn AngularJs then before that you should have good knowledge of the following skills:

  • HTML
  • JavaScript
  • CSS

The first released version 1.0 of AngularJs was 2012. That version introduced some features like Single Page Application, Support Separation, Support Binding, Test Driven Development, Rich internet applications and cross-browser support.

You want to download AngularJS from the following link: à Click Download AngularJS file

Code: App.js

  1. var app = angular.module("AngularApps", []);  


  1. app.controller("MySampleAppController", function ($scope) {  
  2.     $scope.Message = "";  
  4. });  


  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">  
  5. <html xmlns="">  
  6. <head runat="server">  
  7.     <title>San2Debug || AngularJS Sample Application</title>  
  8.     <script src="Js/angular.min.js"></script>  
  9.     <script src="Js/App.js" type="text/javascript"></script>  
  10.     <script src="Js/SampleAppControler.js" type="text/javascript"></script>  
  11. </head>  
  12. <body>  
  13.     <form id="form1" runat="server">  
  14.     <div id="Container" ng-app="AngularApps" ng-controller="MySampleAppController">  
  15.     <p><h3>Welcome {{Message}}</h3></p>  
  16.     </div>  
  17.     </form>  
  18. </body>  
  19. </html>  

Output: Welcome


This article helps to understand AngularJS in Visual Studio 2010.

Similar Articles