forked from angular/code.angularjs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.scope.$new.html
22 lines (21 loc) · 1006 Bytes
/
angular.scope.$new.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<h1>angular.scope.$new</h1>
<div class="angular-scope-new"><fieldset class="workInProgress"><legend>Work in Progress</legend>
This page is currently being revised. It might be incomplete or contain inaccuracies.</fieldset>
<h2>Description</h2>
<div class="description"><p>Creates a new <a href="#!angular.scope"><code>scope</code></a>, that:</p>
<ul>
<li>is a child of the current scope</li>
<li>will <a href="#!angular.scope.$become"><code>$become</code></a> of type specified via <code>constructor</code></li>
</ul></div>
<h2>Usage</h2>
<div class="usage"><div ng:non-bindable=""><pre class="brush: js; html-script: true;">angular.scope.$new(constructor);</pre>
</div>
<h3>Parameters</h3>
<ul class="parameters"><li><code ng:non-bindable="">constructor – {function()} – </code>
<p>Constructor function of the type the new scope should assume.</p></li>
</ul>
<h3>Returns</h3>
<div class="returns"><code ng:non-bindable="">{Object}</code>
– <p>The newly created child scope.</p></div>
</div>
</div>