core/i18n/c8y-translate.directive.ts
Selector | [translate],[ngx-translate] |
Properties |
Methods |
constructor(translateService: TranslateService, element: ElementRef, _ref: ChangeDetectorRef)
|
||||||||||||
Parameters :
|
checkNodes | ||||||||||||
checkNodes(forceUpdate, translations?: any)
|
||||||||||||
Overridden method from original directive. For simple text nodes, it just invokes the base method. For complex nodes, it builds translation key from whole inner HTML and replaces it with its translation. This prevents splitting HTML into pieces and attempting to translate each one separately which doesn't work, because we extract strings in whole.
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
htmlUpdateEvent |
htmlUpdateEvent:
|
Type : EventEmitter<void>
|
Default value : new EventEmitter<void>()
|
Used to trigger events when html is replaced by directive. |