24 lines
1 KiB
HTML
24 lines
1 KiB
HTML
<h1><code ng:non-bindable="">$compileProvider</code>
|
||
<span class="hint">(service in module <code ng:non-bindable="">ng</code>
|
||
)</span>
|
||
</h1>
|
||
<div><h2 id="Description">Description</h2>
|
||
<div class="description"></div>
|
||
<div class="member method"><h2 id="Methods">Methods</h2>
|
||
<ul class="methods"><li><h3 id="directive">directive(name, directiveFactory)</h3>
|
||
<div class="directive"><p>Register a new directives with the compiler.</p><h4 id="Parameters">Parameters</h4>
|
||
<ul class="parameters"><li><code ng:non-bindable="">name – {string} – </code>
|
||
<p>Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
|
||
<code>ng-bind</code>).</p></li>
|
||
<li><code ng:non-bindable="">directiveFactory – {function} – </code>
|
||
<p>An injectable directive factroy function. See <a href="guide/directive">guide/directive</a> for more
|
||
info.</p></li>
|
||
</ul>
|
||
<h4 id="Returns">Returns</h4>
|
||
<div class="returns"><code ng:non-bindable="">{ng.$compileProvider}</code>
|
||
– <p>Self for chaining.</p></div>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|