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