From 7a0184ef56159e8745b106d948a13456b8da9fc6 Mon Sep 17 00:00:00 2001 From: Roberto Simonetti Date: Mon, 10 Feb 2020 18:20:12 +0100 Subject: [PATCH] Update version & docs --- docs/injectables/L10nAsyncPipe.html | 339 ++++++++++++++++++++++++ docs/js/menu-wc.js | 28 +- docs/js/search/search_index.js | 4 +- docs/modules/L10nTranslationModule.html | 2 +- docs/overview.html | 10 +- package.json | 2 +- projects/angular-l10n/package.json | 2 +- 7 files changed, 354 insertions(+), 33 deletions(-) create mode 100644 docs/injectables/L10nAsyncPipe.html diff --git a/docs/injectables/L10nAsyncPipe.html b/docs/injectables/L10nAsyncPipe.html new file mode 100644 index 00000000..a796f638 --- /dev/null +++ b/docs/injectables/L10nAsyncPipe.html @@ -0,0 +1,339 @@ + + + + + + Angular l10n Specification + + + + + + + + + + + + +
+
+ + +
+
+ + + + + + + + + + + +
+
+

+

File

+

+

+ projects/angular-l10n/src/lib/models/l10n-async-pipe.ts +

+ + + + +
+

Index

+ + + + + + + + + + + + + + + + + + + + + +
+
Properties
+
+ +
+
Methods
+
+ +
+
+ +
+

Constructor

+ + + + + + + + + + + + + +
+constructor(translation: L10nTranslationService, cdr: ChangeDetectorRef) +
+ +
+
+ Parameters : + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeOptional
translation + L10nTranslationService + + No +
cdr + ChangeDetectorRef + + No +
+
+
+
+ +
+ +

+ Methods +

+ + + + + + + + + + + + + + + + + + + +
+ + + + ngOnDestroy + + + +
+ngOnDestroy() +
+ +
+ +
+ Returns : void + +
+
+
+
+ +

+ Properties +

+ + + + + + + + + + + + + + +
+ + + + Protected + onChanges + + +
+ Type : Subscription + +
+ +
+
+ +
+ + +
+
import { Injectable, OnDestroy, ChangeDetectorRef } from '@angular/core';
+import { Subscription } from 'rxjs';
+
+import { L10nTranslationService } from '../services/l10n-translation.service';
+
+@Injectable()
+export class L10nAsyncPipe implements OnDestroy {
+
+    protected onChanges: Subscription;
+
+    constructor(protected translation: L10nTranslationService, protected cdr: ChangeDetectorRef) {
+        this.onChanges = this.translation.onChange().subscribe({
+            next: () => this.cdr.markForCheck()
+        });
+    }
+
+    ngOnDestroy() {
+        if (this.onChanges) this.onChanges.unsubscribe();
+    }
+
+}
+
+
+ +
+ + + + + + + + + + + + +
+
+

result-matching ""

+
    +
    +
    +

    No results matching ""

    +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/js/menu-wc.js b/docs/js/menu-wc.js index ae192c59..0304effb 100644 --- a/docs/js/menu-wc.js +++ b/docs/js/menu-wc.js @@ -139,13 +139,13 @@ customElements.define('compodoc-menu', class extends HTMLElement { L10nTranslationModule
  • -