UNPKG

@loopback/docs

Version:
1,420 lines (978 loc) 33.3 kB
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/code-themes/sl-theme.css"> <link rel="stylesheet" href="css/main.css"> </head> <body> <div class="navbar navbar-inverse navbar-static-top" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">docs.strongloop.com</a> </div> <div id="modules"></div> </div> <div class="row"> <div class="col-lg-3 column scroll-spy-target"> <ul class="nav nav-pills nav-stacked"> <div id="versions"></div> <li class="depth-3"> <a href="#ServiceProxyMetadata">Class: ServiceProxyMetadata</a> </li> <li class="depth-4"> <a href="#ServiceProxyMetadata.constructor">constructor()</a> </li> <li class="depth-4"> <a href="#ServiceProxyMetadata.prototype.dataSource">dataSource</a> </li> <li class="depth-4"> <a href="#ServiceProxyMetadata.prototype.dataSourceName">dataSourceName</a> </li> <li class="depth-4"> <a href="#ServiceProxyMetadata.prototype.decorator">decorator</a> </li> <li class="depth-3"> <a href="#ServiceProxyDecorator">Type: ServiceProxyDecorator</a> </li> <li class="depth-3"> <a href="#SERVICE_PROXY_KEY">SERVICE_PROXY_KEY</a> </li> <li class="depth-3"> <a href="#serviceProxy">serviceProxy()</a> </li> <li class="depth-3"> <a href="#juggler">Namespace: juggler</a> </li> <li class="depth-3"> <a href="#GenericService">Interface: GenericService</a> </li> <li class="depth-3"> <a href="#getService">getService()</a> </li> <li class="depth-3"> <a href="#ServiceMixinDoc">Class: ServiceMixinDoc</a> </li> <li class="depth-4"> <a href="#ServiceMixinDoc.constructor">constructor()</a> </li> <li class="depth-4"> <a href="#ServiceMixinDoc.prototype.component">component()</a> </li> <li class="depth-4"> <a href="#ServiceMixinDoc.prototype.mountComponentServices">mountComponentServices()</a> </li> <li class="depth-4"> <a href="#ServiceMixinDoc.prototype.serviceProvider">serviceProvider()</a> </li> <li class="depth-3"> <a href="#ApplicationWithServices">Interface: ApplicationWithServices</a> </li> <li class="depth-4"> <a href="#ApplicationWithServices.prototype.options">options</a> </li> <li class="depth-4"> <a href="#ApplicationWithServices.prototype.component">component()</a> </li> <li class="depth-4"> <a href="#ApplicationWithServices.prototype.mountComponentServices">mountComponentServices()</a> </li> <li class="depth-4"> <a href="#ApplicationWithServices.prototype.serviceProvider">serviceProvider()</a> </li> <li class="depth-3"> <a href="#Class">Interface: Class</a> </li> <li class="depth-4"> <a href="#Class.constructor">constructor()</a> </li> <li class="depth-3"> <a href="#ServiceMixin">ServiceMixin()</a> </li> </ul> </div> <div class="col-lg-9 col-lg-offset-3 column" data-spy="scroll" data-target=".scroll-spy-target" data-offset="0"> <div class="readability"> <section class="code-doc "> <a name="ServiceProxyMetadata"></a> <h3 class="code-ref">Class: serviceproxymetadata = new ServiceProxyMetadata()</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </section> <section class="code-doc"> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Properties</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name="ServiceProxyMetadata.prototype.dataSource"></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code><a href="#juggler.DataSource">juggler.DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> exported optional </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> <tr class="code-arg"> <td> <a name="ServiceProxyMetadata.prototype.dataSourceName"></a> <strong class="code-arg-name"> dataSourceName </strong> </td> <td class="code-arg-types"> <code>undefined | string</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> exported optional </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> <tr class="code-arg"> <td> <a name="ServiceProxyMetadata.prototype.decorator"></a> <strong class="code-arg-name"> decorator </strong> </td> <td class="code-arg-types"> <code>string</code> </td> <td class="code-arg-default-value"> "@serviceProxy" </td> <td class="code-arg-flags"> exported </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ServiceProxyMetadata.constructor"></a> <h4 class="code-ref">constructor(dataSource: string | <a href="#DataSource">DataSource</a>) : <a href="#ServiceProxyMetadata">ServiceProxyMetadata</a></h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code>string | <a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Metadata for a service proxy</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="SERVICE_PROXY_KEY"></a> <h3 class="code-ref">const SERVICE_PROXY_KEY = MetadataAccessor.create< string, ServiceProxyDecorator >('service.proxy')</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </section> <section class="code-doc "> <a name="serviceProxy"></a> <h3 class="code-ref">Function: serviceProxy</h3> <section class="code-doc "> <a name="serviceProxy"></a> <h4 class="code-ref">serviceProxy(dataSource: string | <a href="#DataSource">DataSource</a>) : <a href="#(Anonymous function)">(Anonymous function)</a></h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> dataSource </strong> </td> <td class="code-arg-types"> <code>string | <a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </td> </tr> </table> </section> </section> <section class="code-doc "> <a name="juggler"></a> <h3 class="code-ref">Namespace: juggler</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </section> <section class="code-doc "> <a name="GenericService"></a> <h3 class="code-ref">Interface: GenericService</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>A generic service interface with any number of methods that return a promise</p> </p> <p></p> </div> </section> <section class="code-doc "> <a name="getService"></a> <h3 class="code-ref">Function: getService</h3> <section class="code-doc "> <a name="getService"></a> <h4 class="code-ref">getService(ds: <a href="#DataSource">DataSource</a>) : <a href="#Promise">Promise</a>&lt;T&gt;</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Get a service proxy from a LoopBack 3.x data source backed by service-oriented connectors such as <code>rest</code>, <code>soap</code>, and <code>grpc</code>.</p> </p> <p></p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> ds </strong> </td> <td class="code-arg-types"> <code><a href="#DataSource">DataSource</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p></p> <p><p>A legacy data source</p> </p> </div> </td> </tr> </table> </section> </section> <section class="code-doc "> <a name="ServiceMixinDoc"></a> <h3 class="code-ref">Class: servicemixindoc = new ServiceMixinDoc()</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>A dummy class created to generate the tsdoc for the members in service mixin. Please don&#39;t use it.</p> </p> <p><p>The members are implemented in function <a href="#ServiceMixin">ServiceMixin</a></p> </p> </div> </section> <section class="code-doc "> <a name="ServiceMixinDoc.constructor"></a> <h4 class="code-ref">constructor(args: any[]) : <a href="#ServiceMixinDoc">ServiceMixinDoc</a></h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> args </strong> </td> <td class="code-arg-types"> <code>any[]</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> rest </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>A dummy class created to generate the tsdoc for the members in service mixin. Please don&#39;t use it.</p> </p> <p><p>The members are implemented in function <a href="#ServiceMixin">ServiceMixin</a></p> </p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ServiceMixinDoc.prototype.component"></a> <h4 class="code-ref">component(component: <a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Add a component to this application. Also mounts all the components services.</p> </p> <p></p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> component </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p></p> <p><p>The component to add.</p> <pre><code class="language-ts"> export class ProductComponent { controllers = [ProductController]<span class="hljs-comment">;</span> repositories = [ProductRepo, UserRepo]<span class="hljs-comment">;</span> providers = { [AUTHENTICATION_STRATEGY]: AuthStrategy, [AUTHORIZATION_ROLE]: Role, }<span class="hljs-comment">;</span> }<span class="hljs-comment">;</span> <p>app.component(ProductComponent)<span class="hljs-comment">;</span></code></pre></p> </p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ServiceMixinDoc.prototype.mountComponentServices"></a> <h4 class="code-ref">mountComponentServices(component: <a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Get an instance of a component and mount all it&#39;s services. This function is intended to be used internally by component()</p> </p> <p></p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> component </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p></p> <p><p>The component to mount services of</p> </p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ServiceMixinDoc.prototype.serviceProvider"></a> <h4 class="code-ref">serviceProvider(provider: <a href="#Class">Class</a>&lt;<a href="#Provider">Provider</a>&lt;S&gt;&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Add a service to this application.</p> </p> <p></p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> provider </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#Provider">Provider</a>&lt;S&gt;&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p></p> <p><p>The service provider to register.</p> <pre><code class="language-ts">export <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">GeocoderService</span> {</span> geocode(<span class="hljs-string">address:</span> string): Promise&lt;GeoPoint[]&gt;; } <p>export <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">GeocoderServiceProvider</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">Provider</span>&lt;<span class="hljs-title">GeocoderService</span>&gt; {</span> constructor( <span class="hljs-meta">@inject</span>(<span class="hljs-string">&#39;datasources.geocoder&#39;</span>) <span class="hljs-keyword">protected</span> <span class="hljs-string">datasource:</span> juggler.DataSource = <span class="hljs-keyword">new</span> GeocoderDataSource(), ) {}</p> <p> value(): Promise&lt;GeocoderService&gt; { <span class="hljs-keyword">return</span> getService(<span class="hljs-keyword">this</span>.datasource); } }</p> <p>app.serviceProvider(GeocoderServiceProvider);</code></pre></p> </p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ApplicationWithServices"></a> <h3 class="code-ref">Interface: ApplicationWithServices</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for an Application mixed in with ServiceMixin</p> </p> <p></p> </div> </section> <section class="code-doc"> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Properties</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name="ApplicationWithServices.prototype.options"></a> <strong class="code-arg-name"> options </strong> </td> <td class="code-arg-types"> <code><a href="#ApplicationConfig">ApplicationConfig</a></code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> exported public </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for an Application mixed in with ServiceMixin</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ApplicationWithServices.prototype.component"></a> <h4 class="code-ref">component(component: <a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> component </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for an Application mixed in with ServiceMixin</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ApplicationWithServices.prototype.mountComponentServices"></a> <h4 class="code-ref">mountComponentServices(component: <a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> component </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#__type">__type</a>&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for an Application mixed in with ServiceMixin</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ApplicationWithServices.prototype.serviceProvider"></a> <h4 class="code-ref">serviceProvider(provider: <a href="#Class">Class</a>&lt;<a href="#Provider">Provider</a>&lt;S&gt;&gt;) : void</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> provider </strong> </td> <td class="code-arg-types"> <code><a href="#Class">Class</a>&lt;<a href="#Provider">Provider</a>&lt;S&gt;&gt;</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for an Application mixed in with ServiceMixin</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="Class"></a> <h3 class="code-ref">Interface: Class</h3> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for classes with <code>new</code> operator.</p> </p> <p></p> </div> </section> <section class="code-doc "> <a name="Class.constructor"></a> <h4 class="code-ref">constructor(args: any[]) : T</h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> args </strong> </td> <td class="code-arg-types"> <code>any[]</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> rest </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>Interface for classes with <code>new</code> operator.</p> </p> <p></p> </div> </td> </tr> </table> </section> <section class="code-doc "> <a name="ServiceMixin"></a> <h3 class="code-ref">Function: ServiceMixin</h3> <section class="code-doc "> <a name="ServiceMixin"></a> <h4 class="code-ref">ServiceMixin(superClass: T) : </h4> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> <div class="code-desc"> <p><p>A mixin class for Application that creates a .serviceProvider() function to register a service automatically. Also overrides component function to allow it to register repositories automatically.</p> </p> <p><pre><code class="language-ts"><span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MyApplication</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">ServiceMixin</span>(<span class="hljs-params"><span class="hljs-type">Application</span></span>) </span>{}</code></pre> <p>Please note: the members in the mixin function are documented in a dummy class called <a href="#ServiceMixinDoc">ServiceMixinDoc</a></p> </p> </div> <!-- A table of members such as parameters/properties/variables --> <div class="code-arguments-hdr">Parameters</div> <table class="params code-arguments"> <tr> <th class="hdr-name">Name</th> <th class="hdr-type">Type</th> <th class="hdr-default-value">Default Value</th> <th class="hdr-flags">Flags</th> <th class="hdr-desc">Description</th> </tr> <tr class="code-arg"> <td> <a name=""></a> <strong class="code-arg-name"> superClass </strong> </td> <td class="code-arg-types"> <code>T</code> </td> <td class="code-arg-default-value"> </td> <td class="code-arg-flags"> </td> <td class="code-arg-desc"> <!-- Used for displaying comments in Class, Interface, Properties Constructor, Function and Parameters of constructor or function. (Excludes Type alias). --> </td> </tr> </table> </section> </section> </div> <div class="intentionally-left-blank"></div> </div> </div> <script src="js/vendor/jquery-1.10.1.min.js"></script> <script src="js/vendor/jquery.scrollTo-1.4.3.1.js"></script> <script src="js/vendor/bootstrap.min.js"></script> <script src="js/main.js"></script> </body> </html>