mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Single place for translate pipe
This commit is contained in:
@@ -22,7 +22,6 @@ import {
|
||||
ALFRESCO_CORE_PROVIDERS,
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoPipeTranslate,
|
||||
AlfrescoTranslationService
|
||||
} from 'ng2-alfresco-core';
|
||||
import {
|
||||
@@ -49,8 +48,7 @@ import {
|
||||
`,
|
||||
styles: [':host > .container {padding: 10px}'],
|
||||
providers: [ALFRESCO_SEARCH_PROVIDERS],
|
||||
directives: [ALFRESCO_SEARCH_DIRECTIVES],
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
directives: [ALFRESCO_SEARCH_DIRECTIVES]
|
||||
})
|
||||
class SearchDemo implements OnInit {
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
import { Component, EventEmitter, Input, OnChanges, Output } from '@angular/core';
|
||||
import { AlfrescoSearchService } from './../services/alfresco-search.service';
|
||||
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
|
||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
|
||||
declare let __moduleName: string;
|
||||
|
||||
@@ -27,8 +27,7 @@ declare let __moduleName: string;
|
||||
selector: 'alfresco-search-autocomplete',
|
||||
templateUrl: './alfresco-search-autocomplete.component.html',
|
||||
styleUrls: ['./alfresco-search-autocomplete.component.css'],
|
||||
providers: [AlfrescoSearchService],
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
providers: [AlfrescoSearchService]
|
||||
})
|
||||
export class AlfrescoSearchAutocompleteComponent implements OnChanges {
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
import { Control, Validators } from '@angular/common';
|
||||
import { Component, Input, Output, ElementRef, EventEmitter, ViewChild } from '@angular/core';
|
||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoSearchAutocompleteComponent } from './alfresco-search-autocomplete.component';
|
||||
import { SearchTermValidator } from './../forms/search-term-validator';
|
||||
|
||||
@@ -28,8 +28,7 @@ declare let __moduleName: string;
|
||||
selector: 'alfresco-search-control',
|
||||
templateUrl: './alfresco-search-control.component.html',
|
||||
styleUrls: ['./alfresco-search-control.component.css'],
|
||||
directives: [AlfrescoSearchAutocompleteComponent],
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
directives: [AlfrescoSearchAutocompleteComponent]
|
||||
})
|
||||
export class AlfrescoSearchControlComponent {
|
||||
|
||||
|
@@ -19,7 +19,7 @@ import { Component, EventEmitter, Input, Output, Optional, OnChanges, OnInit } f
|
||||
import { RouteParams } from '@angular/router-deprecated';
|
||||
import { AlfrescoSearchService } from './../services/alfresco-search.service';
|
||||
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
|
||||
import { AlfrescoPipeTranslate, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
|
||||
declare let __moduleName: string;
|
||||
|
||||
@@ -28,8 +28,7 @@ declare let __moduleName: string;
|
||||
selector: 'alfresco-search',
|
||||
styleUrls: ['./alfresco-search.component.css'],
|
||||
templateUrl: './alfresco-search.component.html',
|
||||
providers: [AlfrescoSearchService],
|
||||
pipes: [AlfrescoPipeTranslate]
|
||||
providers: [AlfrescoSearchService]
|
||||
})
|
||||
export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
|
||||
|
Reference in New Issue
Block a user