UNPKG

angular-egg

Version:

An AngularJS Directive implementation of egg.js by Mike Flynn

39 lines (38 loc) 3.12 kB
<h1><code ng:non-bindable="">ngEgg</code> <div><span class="hint"></span> </div> </h1> <div><h2 id="description">Description</h2> <div class="description"></div> <h2 id="dependencies">Dependencies</h2> <ul class="dependencies"><li><code ng:non-bindable=""><a href="api/ng.$document">$document</a></code> </li> </ul> <h2 id="usage">Usage</h2> <div class="usage">as attribute<pre class="prettyprint linenums">&lt;ANY ng-egg $document="{Object}"&gt; ... &lt;/ANY&gt;</pre> <h4 id="usage_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>$document</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="ngegg-page"><p>$document</p> </div></td></tr></tbody></table></div> <div class="member method"><h2 id="methods">Methods</h2> <ul class="methods"><li><h3 id="methods___tocharcodes">__toCharCodes(keys)</h3> <div class="__tocharcodes"><div class="-tocharcodes-page"><p>Converts literal character values to keyCodes</p> </div><h5 id="methods___tocharcodes_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>keys</td><td><a href="" class="label type-hint type-hint-string">String</a></td><td><div class="-tocharcodes-page"><p>keycode String</p> </div></td></tr></tbody></table><h5 id="methods___tocharcodes_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-string">String</a></td><td><div class="-tocharcodes-page"><p>Reformatted keycode String</p> </div></td></tr></table></div> </li> <li><h3 id="methods_handleevent">handleEvent(e)</h3> <div class="handleevent"><h5 id="methods_handleevent_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>e</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="handleevent-page"><p>Event Object</p> </div></td></tr></tbody></table></div> </li> <li><h3 id="methods_link">link(scope, elem, attrs, ngModelCtrl)</h3> <div class="link"><h5 id="methods_link_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>scope</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="link-page"><p>$scope</p> </div></td></tr><tr><td>elem</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="link-page"><p>DOM Element</p> </div></td></tr><tr><td>attrs</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="link-page"><p>Attributes</p> </div></td></tr><tr><td>ngModelCtrl</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="link-page"><p>ngModelController</p> </div></td></tr></tbody></table></div> </li> </ul> </div> </div>