AngularJS Data Binding - LearnHowToCode SarkariResult.com Interview Questions and Answers LearnHowToCodeOnline
AngularJS Data Binding

AngularJS Data Binding

Data binding is a very useful and powerful feature used in software development technologies.  

Data binding in AngularJS is the synchronization between the model and the view.
AngularJS follows Two-Way data binding model.

One-Way Data Binding

AngularJS applications usually have a data model. The data model is a collection of data available for the application.
var app = angular.module('myApp', []);
app.controller('myCtrl'function($scope) {
    $scope.firstname "John";
    $scope.lastname = "Doe";
});

Two-Way Data Binding

Data binding in AngularJS is the synchronization between the model and the view.

<div ng-app="myApp" ng-controller="myCtrl">
    Name: <input ng-model="firstname">
    <h1>{{firstname}}</h1>
</div>

<script>
var app = angular.module('myApp', []);
app.controller('myCtrl'function($scope) {
    $scope.firstname "John";
    $scope.lastname = "Doe";
});
</script>



About Mariano

I'm Ethan Mariano a software engineer by profession and reader/writter by passion.I have good understanding and knowledge of AngularJS, Database, javascript, web development, digital marketing and exploring other technologies related to Software development.

0 comments:

Featured post

Political Full Forms List

Acronym Full Form MLA Member of Legislative Assembly RSS Really Simple Syndication, Rashtriya Swayamsevak Sangh UNESCO United Nations E...

Powered by Blogger.