Improve this DocBootstrap
This page explains the Angular initialization process and how you can manually initialize Angular if necessary.
This example shows the recommended path for integrating Angular with what we call automatic initialization.
<!doctype html> <html xmlns:ng="http://angularjs.org" ng-app> <body> ... <script src="angular.js"></script> </body> </html>
- Place the
scripttag at the bottom of the page. Placing script tags at the end of the page improves app load time because the HTML loading is not blocked by loading of the
angular.jsscript. You can get the latest bits from http://code.angularjs.org. Please don't link your production code to this URL, as it will expose a security hole on your site. For experimental development linking to our site is fine.
angular-[version].jsfor a human-readable file, suitable for development and debugging.
angular-[version].min.jsfor a compressed and obfuscated file, suitable for use in production.
ng-appto the root of your application, typically on the
<html>tag if you want angular to auto-bootstrap your application.
If you choose to use the old style directive syntax
ng:then include xml-namespace in
htmlto make IE happy. (This is here for historical reasons, and we no longer recommend use of