Angularjs Examples

AJS Examples

AngularJS ng-Cloak Directive

The AngularJS ng-cloak directive is used to prevent displaying the content until AngularJS has taken control.


<div ng-cloak>{{ 'Tech Strikers' }}</div>

AngularJS ng-Cloak Directive Example

<title>My first AngularJS code</title>
<Script SRC="">
//Defining Controller Using Standard Javascrip Object Constructor
function CustomerController($scope) {
$scope.siteName = "";
<div ng-app="">
<div ng-controller="CustomerController"> 

<input id="btnButton" type="button" value="Change Font" ng-change="clicked">
<p ng-cloak ng-bind="siteName"></p>
See Live Example