Need basic understanding of:
What is angular JS?
Development History
Browser Support
Deep into it
<div ng-app="myApp" ng-controller="myCtrl">
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
Full Name: {{firstName + " " + lastName}}
<script>
</div>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope)
{
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>
Model,View,Controller
Angular extends HTML attributes with Directives and binds data to HTML page with expressions.
Directives
The ng-app directive initializes an AngularJS application.
The ng-init directive initializes application data.
Angular Expressions
<div ng-app="">
<p>My first expression: {{ 5 + 5 }}</p>
</div>
Two-way Binding