diff options
Diffstat (limited to '3rdparty/js/angular-1.0.2/docs/partials/api/ng.directive:ngApp.html')
-rw-r--r-- | 3rdparty/js/angular-1.0.2/docs/partials/api/ng.directive:ngApp.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/3rdparty/js/angular-1.0.2/docs/partials/api/ng.directive:ngApp.html b/3rdparty/js/angular-1.0.2/docs/partials/api/ng.directive:ngApp.html new file mode 100644 index 000000000..f2f00c4ce --- /dev/null +++ b/3rdparty/js/angular-1.0.2/docs/partials/api/ng.directive:ngApp.html @@ -0,0 +1,40 @@ +<h1><code ng:non-bindable="">ngApp</code> +<span class="hint">(directive in module <code ng:non-bindable="">ng</code> +)</span> +</h1> +<div><h2 id="Description">Description</h2> +<div class="description"><p>Use this directive to auto-bootstrap on application. Only +one directive can be used per HTML document. The directive +designates the root of the application and is typically placed +ot the root of the page.</p> + +<p>In the example below if the <code>ngApp</code> directive would not be placed +on the <code>html</code> element then the document would not be compiled +and the <code>{{ 1+2 }}</code> would not be resolved to <code>3</code>.</p> + +<p><code>ngApp</code> is the easiest way to bootstrap an application.</p> + +<h4>Source</h4> +<div source-edit="" source-edit-deps="angular.js" source-edit-html="index.html-82" source-edit-css="" source-edit-js="" source-edit-unit="" source-edit-scenario=""></div> +<div class="tabbable"><div class="tab-pane" title="index.html"> +<pre class="prettyprint linenums" ng-set-text="index.html-82" ng-html-wrap=" angular.js"></pre> +<script type="text/ng-template" id="index.html-82"> + I can add: 1 + 2 = {{ 1+2 }} + </script> +</div> +</div><h4>Demo</h4> +<div class="well doc-example-live" ng-embed-app="" ng-set-html="index.html-82" ng-eval-javascript=""></div></div> +<h2 id="Usage">Usage</h2> +<div class="usage">as attribute<pre class="prettyprint linenums"><ANY ng-app="{angular.Module}"> + ... +</ANY></pre> +as class<pre class="prettyprint linenums"><ANY class="ng-app: {angular.Module};"> + ... +</ANY></pre> +<h3 id="Parameters">Parameters</h3> +<ul class="parameters"><li><code ng:non-bindable="">ngApp – {angular.Module} – </code> +<p>on optional application +<a href="api/angular.module"><code>module</code></a> name to load.</p></li> +</ul> +</div> +</div> |