ajay kumar

ajay kumar

  • NA
  • 106
  • 26.6k

in angular simple program not showing result

Aug 5 2018 7:08 AM
Hi ,
 
Scripts.js file
  1. /// <reference path="angular.min.js" />  
  2. var myApp = angular.module("myModule", []);  
  3. };  
  4. myApp.controller("myController"function ($scope) {  
  5. $scope.message = "angualar js Tutorial";  
  6. });  
HTML Page
  1. <!DOCTYPE html>  
  2. <html data-ng-app="myModule">  
  3. <head>  
  4. <script src="angular.min.js"></script>  
  5. <script src="Script.js"></script>  
  6. </head>  
  7. <body >  
  8. <div data-ng-controller="myController">  
  9. {{ message }}  
  10. </div>  
  11. <div>  
  12. {{10+60}}  
  13. </div>  
  14. </body>  
  15. </html>  
Result
 
 

Answers (3)