Monday, June 29, 2015

AngularJs

I would like to open up a basic step into Angular Js in this post.

First question came up into my mind when I started to learn is "Why AngularJs?"
So the answer is here. Read these posts which are very helpful for the above question

http://jeffwhelpley.com/angularjs/

http://stackoverflow.com/questions/14994391/thinking-in-angularjs-if-i-have-a-jquery-background/15012542#15012542

This is a sample for "Using directives and data binding" from the reference source "AngularJs Fundamentals in 60- ish minutes"  in https://www.youtube.com/watch?v=i9MHigUZKEM


I have created VS 2013, ASP.NET project and added the following html page with angular.min.js file inside the script folder. You can download the angular.min.js file in https://angularjs.org/


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app ="">
<head>
    <title>Using AngularJs directives and data binding</title>
</head>
<body>
    Name:
    <br />
    <input type="text" ng-model ="name" /> {{name}}
    <script src="Scripts/angular.min.js"></script>
</body>
</html>

Try it !!