Angularjs Examples

AJS Examples

AngularJS ng-Bind Directive

The AngularJS ng-bind directive used to display value from model object.


<html ng-app="">
<input type="text" ng-model="name"/>
<span ng-bind="name"/>

AngularJS ng-Bind Directive Example

<title>My first AngularJS ng-bind Directive code</title>
<script SRC="">
//Defining Controller Using Standard Javascrip Object Constructor
function CustomerController($scope) {
  $scope.customer = { name: "Jimi Scott", address: "12-13-283/A1", email: "" };
<div ng-app="">
<div ng-controller="CustomerController"> 
<span ng-bind=""></span>
<span ng-bind="customer.address"></span>
<span ng-bind=""></span>

See live Example