Upgrade to angularjs 1.2.0 rc1
This commit is contained in:
parent
d223dfd662
commit
d6b021bfaf
674 changed files with 79667 additions and 62269 deletions
172
lib/angular/docs/partials/api/angular.IModule.html
Normal file → Executable file
172
lib/angular/docs/partials/api/angular.IModule.html
Normal file → Executable file
|
@ -1,139 +1,109 @@
|
|||
<h1><code ng:non-bindable="">Module</code>
|
||||
<span class="hint">(Type in module <code ng:non-bindable="">ng</code>
|
||||
)</span>
|
||||
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/loader.js#L3" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/loader.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Module</code>
|
||||
<div><span class="hint">Type in module <code ng:non-bindable="">ng</code>
|
||||
</span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><a href="http://github.com/angular/angular.js/edit/master/src/loader.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
|
||||
<div class="description"><p>Interface for configuring angular <a href="api/angular.module"><code>modules</code></a>.</p></div>
|
||||
<div><h2 id="Description">Description</h2>
|
||||
<div class="description"><div class="angular-module-page"><p>Interface for configuring angular <a href="api/angular.module"><code>modules</code></a>.</p>
|
||||
</div></div>
|
||||
<div class="member method"><h2 id="Methods">Methods</h2>
|
||||
<ul class="methods"><li><h3 id="animation">animation(name, animationFactory)</h3>
|
||||
<div class="animation"><p>Defines an animation hook that can be later used with <a href="api/ng.directive:ngAnimate"><code>ngAnimate</code></a>
|
||||
alongside <a href="api/ng.directive:ngAnimate#Description"><code>common ng directives</code></a> as well as custom directives.
|
||||
<div class="animation"><div class="angular-module-animation-page"><p><strong>NOTE</strong>: animations are take effect only if the <strong>ngAnimate</strong> module is loaded.</p>
|
||||
<p>Defines an animation hook that can be later used with <a href="api/ngAnimate.$animate">$animate</a> service and
|
||||
directives that use this service.</p>
|
||||
<pre class="prettyprint linenums">
|
||||
module.animation('animation-name', function($inject1, $inject2) {
|
||||
module.animation('.animation-name', function($inject1, $inject2) {
|
||||
return {
|
||||
//this gets called in preparation to setup an animation
|
||||
setup : function(element) { ... },
|
||||
|
||||
//this gets called once the animation is run
|
||||
start : function(element, done, memo) { ... }
|
||||
eventName : function(element, done) {
|
||||
//code to run the animation
|
||||
//once complete, then run done()
|
||||
return function cancellationFunction(element) {
|
||||
//code to cancel the animation
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
</pre>
|
||||
|
||||
<p>See <a href="api/ng.$animationProvider#register"><code>$animationProvider.register()</code></a> and
|
||||
<a href="api/ng.directive:ngAnimate"><code>ngAnimate</code></a> for more information.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>animation name</p></li>
|
||||
<li><code ng:non-bindable="">animationFactory – {Function} – </code>
|
||||
<p>Factory function for creating new instance of an animation.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>See <a href="api/ngAnimate.$animateProvider#register">$animateProvider.register()</a> and
|
||||
<a href="api/ngAnimate">ngAnimate module</a> for more information.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-animation-page"><p>animation name</p>
|
||||
</div></td></tr><tr><td>animationFactory</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-animation-page"><p>Factory function for creating new instance of an animation.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="config">config(configFn)</h3>
|
||||
<div class="config"><p>Use this method to register work which needs to be performed on module loading.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">configFn – {Function} – </code>
|
||||
<p>Execute this function on module load. Useful for service
|
||||
configuration.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="config"><div class="angular-module-config-page"><p>Use this method to register work which needs to be performed on module loading.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>configFn</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-config-page"><p>Execute this function on module load. Useful for service
|
||||
configuration.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="constant">constant(name, object)</h3>
|
||||
<div class="constant"><p>Because the constant are fixed, they get applied before other provide methods.
|
||||
See <a href="api/AUTO.$provide#constant"><code>$provide.constant()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>constant name</p></li>
|
||||
<li><code ng:non-bindable="">object – {*} – </code>
|
||||
<p>Constant value.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="constant"><div class="angular-module-constant-page"><p>Because the constant are fixed, they get applied before other provide methods.
|
||||
See <a href="api/AUTO.$provide#constant"><code>$provide.constant()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-constant-page"><p>constant name</p>
|
||||
</div></td></tr><tr><td>object</td><td><a href="" class="label type-hint type-hint-object">*</a></td><td><div class="angular-module-constant-page"><p>Constant value.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="controller">controller(name, constructor)</h3>
|
||||
<div class="controller"><p>See <a href="api/ng.$controllerProvider#register"><code>$controllerProvider.register()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>Controller name.</p></li>
|
||||
<li><code ng:non-bindable="">constructor – {Function} – </code>
|
||||
<p>Controller constructor function.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="controller"><div class="angular-module-controller-page"><p>See <a href="api/ng.$controllerProvider#register"><code>$controllerProvider.register()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-controller-page"><p>Controller name.</p>
|
||||
</div></td></tr><tr><td>constructor</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-controller-page"><p>Controller constructor function.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="directive">directive(name, directiveFactory)</h3>
|
||||
<div class="directive"><p>See <a href="api/ng.$compileProvider#directive"><code>$compileProvider.directive()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>directive name</p></li>
|
||||
<li><code ng:non-bindable="">directiveFactory – {Function} – </code>
|
||||
<p>Factory function for creating new instance of
|
||||
directives.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="directive"><div class="angular-module-directive-page"><p>See <a href="api/ng.$compileProvider#directive"><code>$compileProvider.directive()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-directive-page"><p>directive name</p>
|
||||
</div></td></tr><tr><td>directiveFactory</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-directive-page"><p>Factory function for creating new instance of
|
||||
directives.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="factory">factory(name, providerFunction)</h3>
|
||||
<div class="factory"><p>See <a href="api/AUTO.$provide#factory"><code>$provide.factory()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>service name</p></li>
|
||||
<li><code ng:non-bindable="">providerFunction – {Function} – </code>
|
||||
<p>Function for creating new instance of the service.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="factory"><div class="angular-module-factory-page"><p>See <a href="api/AUTO.$provide#factory"><code>$provide.factory()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-factory-page"><p>service name</p>
|
||||
</div></td></tr><tr><td>providerFunction</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-factory-page"><p>Function for creating new instance of the service.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="filter">filter(name, filterFactory)</h3>
|
||||
<div class="filter"><p>See <a href="api/ng.$filterProvider#register"><code>$filterProvider.register()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>Filter name.</p></li>
|
||||
<li><code ng:non-bindable="">filterFactory – {Function} – </code>
|
||||
<p>Factory function for creating new instance of filter.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="filter"><div class="angular-module-filter-page"><p>See <a href="api/ng.$filterProvider#register"><code>$filterProvider.register()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-filter-page"><p>Filter name.</p>
|
||||
</div></td></tr><tr><td>filterFactory</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-filter-page"><p>Factory function for creating new instance of filter.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="provider">provider(name, providerType)</h3>
|
||||
<div class="provider"><p>See <a href="api/AUTO.$provide#provider"><code>$provide.provider()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>service name</p></li>
|
||||
<li><code ng:non-bindable="">providerType – {Function} – </code>
|
||||
<p>Construction function for creating new instance of the service.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="provider"><div class="angular-module-provider-page"><p>See <a href="api/AUTO.$provide#provider"><code>$provide.provider()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-provider-page"><p>service name</p>
|
||||
</div></td></tr><tr><td>providerType</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-provider-page"><p>Construction function for creating new instance of the service.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="run">run(initializationFn)</h3>
|
||||
<div class="run"><p>Use this method to register work which should be performed when the injector is done
|
||||
loading all modules.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">initializationFn – {Function} – </code>
|
||||
<p>Execute this function after injector creation.
|
||||
Useful for application initialization.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="run"><div class="angular-module-run-page"><p>Use this method to register work which should be performed when the injector is done
|
||||
loading all modules.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>initializationFn</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-run-page"><p>Execute this function after injector creation.
|
||||
Useful for application initialization.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="service">service(name, constructor)</h3>
|
||||
<div class="service"><p>See <a href="api/AUTO.$provide#service"><code>$provide.service()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>service name</p></li>
|
||||
<li><code ng:non-bindable="">constructor – {Function} – </code>
|
||||
<p>A constructor function that will be instantiated.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="service"><div class="angular-module-service-page"><p>See <a href="api/AUTO.$provide#service"><code>$provide.service()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-service-page"><p>service name</p>
|
||||
</div></td></tr><tr><td>constructor</td><td><a href="" class="label type-hint type-hint-function">Function</a></td><td><div class="angular-module-service-page"><p>A constructor function that will be instantiated.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
<li><h3 id="value">value(name, object)</h3>
|
||||
<div class="value"><p>See <a href="api/AUTO.$provide#value"><code>$provide.value()</code></a>.</p><h4 id="Parameters">Parameters</h4>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||||
<p>service name</p></li>
|
||||
<li><code ng:non-bindable="">object – {*} – </code>
|
||||
<p>Service instance object.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="value"><div class="angular-module-value-page"><p>See <a href="api/AUTO.$provide#value"><code>$provide.value()</code></a>.</p>
|
||||
</div><h5 id="parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>name</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-value-page"><p>service name</p>
|
||||
</div></td></tr><tr><td>object</td><td><a href="" class="label type-hint type-hint-object">*</a></td><td><div class="angular-module-value-page"><p>Service instance object.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="member property"><h2 id="Properties">Properties</h2>
|
||||
<ul class="properties"><li><h3 id="name">name</h3>
|
||||
<div class="name"><h4 id="Returns">Returns</h4>
|
||||
<div class="returns"><code ng:non-bindable="">{string}</code>
|
||||
– <p>Name of the module.</p></div>
|
||||
</div>
|
||||
<div class="name"><h5 id="returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="angular-module-name-page"><p>Name of the module.</p>
|
||||
</div></td></tr></table></div>
|
||||
</li>
|
||||
<li><h3 id="requires">requires</h3>
|
||||
<div class="requires"><p>Holds the list of modules which the injector will load before the current module is loaded.</p><h4 id="Returns">Returns</h4>
|
||||
<div class="returns"><code ng:non-bindable="">{Array.<string>}</code>
|
||||
– <p>List of module names which must be loaded before this module.</p></div>
|
||||
</div>
|
||||
<div class="requires"><div class="angular-module-requires-page"><p>Holds the list of modules which the injector will load before the current module is loaded.</p>
|
||||
</div><h5 id="returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-array">Array.<string></a></td><td><div class="angular-module-requires-page"><p>List of module names which must be loaded before this module.</p>
|
||||
</div></td></tr></table></div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue