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
24
lib/angular/docs/partials/api/angular.mock.inject.html
Normal file → Executable file
24
lib/angular/docs/partials/api/angular.mock.inject.html
Normal file → Executable file
|
@ -1,16 +1,14 @@
|
|||
<h1><code ng:non-bindable="">angular.mock.inject</code>
|
||||
<span class="hint">(API in module <code ng:non-bindable="">ng</code>
|
||||
)</span>
|
||||
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/ngMock/angular-mocks.js#L1874" 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/ngMock/angular-mocks.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">angular.mock.inject</code>
|
||||
<div><span class="hint">API in module <code ng:non-bindable="">ng</code>
|
||||
</span>
|
||||
</div>
|
||||
</h1>
|
||||
<div><a href="http://github.com/angular/angular.js/edit/master/src/ngMock/angular-mocks.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
|
||||
<div class="description"><p><em>NOTE</em>: This function is also published on window for easy access.<br></p>
|
||||
|
||||
<div><h2 id="Description">Description</h2>
|
||||
<div class="description"><div class="angular-mock-inject-page"><p><em>NOTE</em>: This function is also published on window for easy access.<br></p>
|
||||
<p>The inject function wraps a function into an injectable function. The inject() creates new
|
||||
instance of <a href="api/AUTO.$injector"><code>$injector</code></a> per test, which is then used for
|
||||
resolving references.</p>
|
||||
|
||||
<p>See also <a href="api/angular.mock.module"><code>module</code></a></p>
|
||||
|
||||
<p>Example of what a typical jasmine tests looks like with the inject method.
|
||||
<pre class="prettyprint linenums">
|
||||
|
||||
|
@ -46,12 +44,10 @@ resolving references.</p>
|
|||
));
|
||||
});
|
||||
|
||||
</pre></div>
|
||||
</pre>
|
||||
</div></div>
|
||||
<h2 id="Usage">Usage</h2>
|
||||
<div class="usage"><pre class="prettyprint linenums">angular.mock.inject(fns);</pre>
|
||||
<h3 id="Parameters">Parameters</h3>
|
||||
<ul class="parameters"><li><code ng:non-bindable="">fns – {...Function} – </code>
|
||||
<p>any number of functions which will be injected using the injector.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<h4 id="parameters">Parameters</h4><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>fns</td><td><a href="" class="label type-hint type-hint-object">...Function</a></td><td><div class="angular-mock-inject-page"><p>any number of functions which will be injected using the injector.</p>
|
||||
</div></td></tr></tbody></table></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue