Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- var myApp = angular.module("myApp", []);
- myApp.bootstrap(document, ["myApp"]);
- myApp.controller("AppController",["$scope", "$http", function() {
- // so stuff with the $scope.
- }]);
- });
- $(document).ready(function() {
- var myApp = angular.module("myApp", []);
- myApp.controller("AppController",["$scope", "$http", function() {
- // so stuff with the $scope.
- }]);
- myApp.bootstrap(document, ["myApp"]); // compile the app last
- });
- angular.element(document).ready(function() {
- var myApp = angular.module("myApp", []);
- myApp.controller("AppController",["$scope", "$http", function() {
- // so stuff with the $scope.
- }]);
- myApp.bootstrap(document, ["myApp"]); // compile the app last
- });
- <!doctype html>
- <html xmlns:ng="http://angularjs.org" ng-app>
- <body>
- ...
- <script src="angular.js">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement