mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
committed by
Eugenio Romano
parent
53d96679ea
commit
e39a2b149b
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
import { HighlightTransformService, HightlightTransformResult } from '../services/highlight-transform.service';
|
||||
import { HighlightTransformService, HighlightTransformResult } from '../services/highlight-transform.service';
|
||||
|
||||
@Pipe({
|
||||
name: 'highlight'
|
||||
@@ -26,7 +26,7 @@ export class HighlightPipe implements PipeTransform {
|
||||
constructor(private highlightTransformService: HighlightTransformService) { }
|
||||
|
||||
transform(text: string, search: string): string {
|
||||
const result: HightlightTransformResult = this.highlightTransformService.highlight(text, search);
|
||||
const result: HighlightTransformResult = this.highlightTransformService.highlight(text, search);
|
||||
return result.text;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user