Skip to content

Commit f35624c

Browse files
author
Ivan Prodaiko
committed
- declarations direct set;
1 parent ec1ca2f commit f35624c

File tree

8 files changed

+29
-44
lines changed

8 files changed

+29
-44
lines changed

demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "demo",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
@@ -26,7 +26,7 @@
2626
"@angular/platform-browser": "^4.0.0",
2727
"@angular/platform-browser-dynamic": "^4.0.0",
2828
"@angular/router": "^4.0.0",
29-
"@nodeart/ngfb_sortable_table": "0.0.11",
29+
"@nodeart/ngfb_sortable_table": "0.0.12",
3030
"core-js": "^2.4.1",
3131
"firebase": "^3.8.0",
3232
"lodash.debounce": "^4.0.8",

docs/images/compodoc.png

4.71 KB
Loading

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ <h2 id="getting-started">Getting started</h2>
424424
<p><strong>AFST</strong> is supplied with <a href="https://ngfb-sortable-table-demo.firebaseapp.com/">small demo</a> (<a href="./demo/src">source</a>)<br>that shows abilities of sortable table and the way one will use it. In order to start demo locally run <code>npm run demo</code>.</p>
425425
<p>Note: npm package is not suplied with demo source code, so visit<br><a href="https://github.com/NodeArt/Angular-Firebase-Sortable-Table">github page</a> to see it.</p>
426426
<h2 id="list-of-components-">List of components:</h2>
427-
<p>For full documentation of each component please visit <a href="">this page</a>.</p>
427+
<p>For full documentation of each component please visit<br><a href="https://nodeart.github.io/Angular-Firebase-Sortable-Table/modules/NgFbSortableTableModule.html">this page</a>.</p>
428428
<p>Sources:</p>
429429
<ul>
430430
<li><a href="./src/components/sortable_table/"><code>SortableTableComponent</code></a></li>

docs/js/search/search_index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/miscellaneous.html

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -465,26 +465,6 @@ <h4><code>src/components/sortable_table/sortable-table.component.ts</code></h4>
465465
</table>
466466
</section>
467467

468-
<h2 id="inputs"><b>Functions</b></h2>
469-
<h4><code>src/sortable-table.module.ts</code></h4>
470-
<section>
471-
<table class="table table-sm table-bordered">
472-
<tbody>
473-
<tr>
474-
<td class="col-md-4">
475-
<b> declarations</b>
476-
</td>
477-
</tr>
478-
<tr>
479-
<td class="col-md-4">
480-
<code>declarations()</code>
481-
</td>
482-
</tr>
483-
484-
485-
</tbody>
486-
</table>
487-
</section>
488468

489469
<h2 id="inputs"><b>Enumerations</b></h2>
490470
<h4><code>src/services/sortable-table.service.ts</code></h4>

docs/modules/NgFbSortableTableModule.html

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,22 @@ <h3>File</h3>
461461
<h3>Declarations<a href="https://angular.io/docs/ts/latest/api/core/index/NgModule-interface.html#!#declarations-anchor" target="_blank"><span class="fa fa-info-circle"></span></a></h3>
462462
<ul class="list-group">
463463
<li class="list-group-item">
464-
<a href="../s/declarations.().html">declarations.()</a>
464+
<a href="../components/SortableTableComponent.html">SortableTableComponent</a>
465+
</li>
466+
<li class="list-group-item">
467+
<a href="../components/LoadingComponent.html">LoadingComponent</a>
468+
</li>
469+
<li class="list-group-item">
470+
<a href="../directives/SortableItemDirective.html">SortableItemDirective</a>
471+
</li>
472+
<li class="list-group-item">
473+
<a href="../directives/DialogDirective.html">DialogDirective</a>
474+
</li>
475+
<li class="list-group-item">
476+
<a href="../directives/InfiniteScrollDirective.html">InfiniteScrollDirective</a>
477+
</li>
478+
<li class="list-group-item">
479+
<a href="../pipes/PriorityKeysPipe.html">PriorityKeysPipe</a>
465480
</li>
466481
</ul>
467482
</div>
@@ -517,20 +532,15 @@ <h3>Exports<a href="https://angular.io/docs/ts/latest/api/core/index/NgModule-in
517532

518533
import { SortableTableService } from &quot;./services/sortable-table.service&quot;;
519534

520-
521-
export function declarations() {
522-
return [
535+
@NgModule({
536+
declarations: [
523537
SortableTableComponent,
524538
LoadingComponent,
525539
SortableItemDirective,
526540
DialogDirective,
527541
InfiniteScrollDirective,
528542
PriorityKeysPipe
529-
];
530-
}
531-
532-
@NgModule({
533-
declarations: declarations(),
543+
],
534544
exports: [
535545
SortableTableComponent,
536546
LoadingComponent,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@nodeart/ngfb_sortable_table",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "Angular Firebase Sortable Table",
55
"main": "index.ts",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"create-demo": "ng new demo --style scss --routing true",
99
"demo": "cd ./demo && npm i && npm start",
1010
"prebuild-docs": "cd ./src",
11-
"build-docs": "compodoc src -p tsconfig.json -d docs --theme postmark -n NGFB-Sortable-Table",
11+
"build-docs": "compodoc src -p tsconfig.json -d docs --theme postmark -n NGFB-Sortable-Table",
1212
"preserve-docs" : "npm run build-docs",
1313
"serve-docs": "compodoc -s -d docs"
1414
},

src/sortable-table.module.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,15 @@ import { PriorityKeysPipe } from "./pipes/priority-keys.pipe";
1515

1616
import { SortableTableService } from "./services/sortable-table.service";
1717

18-
19-
export function declarations() {
20-
return [
18+
@NgModule({
19+
declarations: [
2120
SortableTableComponent,
2221
LoadingComponent,
2322
SortableItemDirective,
2423
DialogDirective,
2524
InfiniteScrollDirective,
2625
PriorityKeysPipe
27-
];
28-
}
29-
30-
@NgModule({
31-
declarations: declarations(),
26+
],
3227
exports: [
3328
SortableTableComponent,
3429
LoadingComponent,

0 commit comments

Comments
 (0)