On Github amitkumar / angularjs-tutorial
Javascript framework
"HTML enhanced for web apps"
var name = "Joe";
$('.name').text(name);
$('input').on('change', function(){
});
$('input').on('change', function(e){
name = this.value;
});
$('input').on('change', function(e){
name = this.value;
$('.name').text(name);
});
$scope.name = "Joe";
$scope.name = "Another Joe";
Separation of concerns
Loosely-coupled
= Cleaner code
Easily changeable
For free!
Less "glue" code
// On a certain interaction
$('#element').on('change', function(){
// update the data
// update another part of the DOM
});
Rich set of tools for interacting with servers, REST APIs
Create custom components
@the_kumar