<div data-ng-app="" data-ng-init="names=['DotnetFunda','TechFunda','SQLFunda','ITFunda']"> <b>Loop Example:</b> <br /> <ul> <li data-ng-repeat="x in names"> {{ x }} </li> </ul> </div>
<div ng-app="" ng-init="DnfObj={Str1:'Dotnet',Str2:'Funda'}"> String Display: <b>{{ DnfObj.Str2 }}</b></div>
app.run(function($rootScope) { $rootScope.name = "AngularDotNetFunda"; });
<body ng-app="myApp"> <h1>Hello {{ name }}!</h1> </body>
<div ng-controller="GrandFather"> <p>{{message}} {{name}}!</p> <div ng-controller="Father"> <p>Hello {{name}}!</p> <div ng-controller="Son"> <p>{{message}} {{name}}! Your username is {{username}}.</p> </div> </div> </div>
var app = angular.module("myApp", []); app.directive("DNFTestDirective", function() { return { restrict : "A", template : "<h1>DotnetFunda is the best for Online Dotnet Support</h1>" }; });