Skip to content

Instantly share code, notes, and snippets.

@kalbarczyk
Created November 18, 2014 14:01
Show Gist options
  • Save kalbarczyk/9231eb2368a110d15b1b to your computer and use it in GitHub Desktop.
Save kalbarczyk/9231eb2368a110d15b1b to your computer and use it in GitHub Desktop.
AngularJS - funkcja bootstrap - przykład z naszej książki „AngularJS - Pierwsze kroki”, która ukaże się na początku 2015r. dzięki wydawnictwu Helion.
<!doctype html>
<html>
<head>
<title>AngularJS - funkcje - angular.bootstrap</title>
</head>
<body>
<div data-ng-controller="defaultCtrl">
<h1>angular.bootstrap</h1>
</div>
<script src="https://code.angularjs.org/1.3.0/angular.js"></script>
<script>
var app = angular.module('app', [])
.controller('defaultCtrl', function ($scope) {
console.log('app');
});
angular.bootstrap(document, ['app']);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment