From bd33f60276a0fa37acffbad7a0cdcff92db594c8 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Tue, 25 Jan 2011 21:55:11 -0800
Subject: Added part of guide documentation and supporting changes to doc
generator
---
docs/guide.bootstrap.ngdoc | 97 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
create mode 100644 docs/guide.bootstrap.ngdoc
(limited to 'docs/guide.bootstrap.ngdoc')
diff --git a/docs/guide.bootstrap.ngdoc b/docs/guide.bootstrap.ngdoc
new file mode 100644
index 00000000..835fe494
--- /dev/null
+++ b/docs/guide.bootstrap.ngdoc
@@ -0,0 +1,97 @@
+@workInProgress
+@ngdoc overview
+@name Developer Guide: Bootstrap
+@description
+
+# Bootstrap
+This section explains how to bootstrap your application to the angular environment using either
+the `angular.js` or `angular.min.js` script.
+
+## The bootstrap code
+
+Note that there are two versions of the bootstrap code that you can use:
+
+* `angular-0.0.0.js` - this file is unobfuscated, uncompressed, and thus human-readable.
+* `angular-0.0.0.min.js` - this is a compressed and obfuscated version of angular-debug.js.
+
+In this section and throughout the Developer Guide, feel free to use `angular.min.js` instead of
+`angular.js` when working through code examples.
+
+## ng:autobind
+
+The simplest way to get an angular application up and running is by inserting a script tag in your
+HTML file that bootstraps the `angular.js` code and uses the special `ng:autobind` attribute,
+like in this snippet of HTML:
+
+
+
+
+
+
+
+ Hello {{'World'}}!
+
+
+
+
+This is the sequence that your code should follow if you're writing your own manual binding code:
+
+ * After the page is loaded, find the root of the HTML template, which is typically the root of
+ the document.
+ * Run the HTML compiler, which converts the templates into an executable, bi-directionally
+ bound application.
+
+
+# XML Namespace
+
+**IMPORTANT:** When using angular you must declare the `ng` namespace using the `xmlns` tag.
+ If you don't declare the namespace, Internet Explorer does not render widgets properly.
+
++ ++ + +# Create your own namespace + +If you want to define your own widgets, you must create your own namespace and use that namespace +to form the fully qualified widget name. For example, you could map the alias my to your domain +and create a widget called my:widget. To create your own namespace, simply add another xmlsn tag +to your page, create an alias, and set it to your unique domain: + +
+ ++ + +# Global Object + +The angular script creates a single global variable `angular` in the global namespace. All APIs are +bound to fields of this global object. + -- cgit v1.2.3