Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy AngularJS Tutorials</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"> </script> </head> <body> <h2>ng-controller Directive in AngularJS Tutorials.</h2> <div ng-app="myApp" ng-controller="myController"> {{msg}} </div> <script> var app = angular.module('myApp', []); app.controller('myController', function($scope) { $scope.msg = "Welcome To AngularJS Tutorials"; }); </script> </body> </html>
www.wikitechy.com © Copyright 2016. All Rights Reserved.