Sunday 21 August 2016

Angular JS

Controller:

JS code:
var myApp = angular.module('myApp',[]);

myApp.controller('GreetingController', ['$scope', function($scope) {
  $scope.greeting = 'Hola!';
}]);

HTML:

<div ng-controller="GreetingController">
  {{ greeting }}
</div>


No comments:

Post a Comment

Contact Us:

Email:

Vinodkumar434@gmail.com,
vinodtechnosoft@gmail.com

Skype Name:

vinodtechnosoft