Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. $(document).ready(function() {
  2. var myApp = angular.module("myApp", []);
  3.  
  4. myApp.bootstrap(document, ["myApp"]);
  5.  
  6. myApp.controller("AppController",["$scope", "$http", function() {
  7. // so stuff with the $scope.
  8. }]);
  9. });
  10.  
  11. $(document).ready(function() {
  12. var myApp = angular.module("myApp", []);
  13.  
  14. myApp.controller("AppController",["$scope", "$http", function() {
  15. // so stuff with the $scope.
  16. }]);
  17.  
  18. myApp.bootstrap(document, ["myApp"]); // compile the app last
  19. });
  20.  
  21. angular.element(document).ready(function() {
  22. var myApp = angular.module("myApp", []);
  23.  
  24. myApp.controller("AppController",["$scope", "$http", function() {
  25. // so stuff with the $scope.
  26. }]);
  27.  
  28. myApp.bootstrap(document, ["myApp"]); // compile the app last
  29. });
  30.  
  31. <!doctype html>
  32. <html xmlns:ng="http://angularjs.org" ng-app>
  33. <body>
  34. ...
  35. <script src="angular.js">
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement