Prev Demo
AngularJS
>
One Way Data Binding
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> <script> var app = angular.module('app', []); app.controller('myController', function($scope) { $scope.FullName = 'Sheo Narayan'; $scope.Address = 'Hyderabad, India'; }); </script> </head> <body ng-app="app" ng-controller="myController"> <h2>One way data binding - AngularJS</h2> <p>Full Name: {{ FullName }} </p> <p>Address: <span ng-bind="Address"></span></p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output