mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-07 18:25:09 +00:00
add missing 'forRoot' implementatitions (#1369)
This commit is contained in:
parent
4ea3187e7a
commit
512f6504f2
@ -59,13 +59,13 @@ import {
|
|||||||
BrowserModule,
|
BrowserModule,
|
||||||
routing,
|
routing,
|
||||||
CoreModule.forRoot(),
|
CoreModule.forRoot(),
|
||||||
LoginModule,
|
LoginModule.forRoot(),
|
||||||
SearchModule.forRoot(),
|
SearchModule.forRoot(),
|
||||||
DataTableModule,
|
DataTableModule.forRoot(),
|
||||||
DocumentListModule.forRoot(),
|
DocumentListModule.forRoot(),
|
||||||
UploadModule.forRoot(),
|
UploadModule.forRoot(),
|
||||||
TagModule.forRoot(),
|
TagModule.forRoot(),
|
||||||
WebScriptModule,
|
WebScriptModule.forRoot(),
|
||||||
ViewerModule.forRoot(),
|
ViewerModule.forRoot(),
|
||||||
ActivitiFormModule.forRoot(),
|
ActivitiFormModule.forRoot(),
|
||||||
ActivitiTaskListModule.forRoot(),
|
ActivitiTaskListModule.forRoot(),
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { CoreModule } from 'ng2-alfresco-core';
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
export * from './src/data/index';
|
export * from './src/data/index';
|
||||||
@ -39,10 +39,14 @@ export const ALFRESCO_DATATABLE_DIRECTIVES: [any] = [
|
|||||||
declarations: [
|
declarations: [
|
||||||
...ALFRESCO_DATATABLE_DIRECTIVES
|
...ALFRESCO_DATATABLE_DIRECTIVES
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
...ALFRESCO_DATATABLE_DIRECTIVES
|
...ALFRESCO_DATATABLE_DIRECTIVES
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class DataTableModule {}
|
export class DataTableModule {
|
||||||
|
static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: DataTableModule
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -15,14 +15,16 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { CoreModule } from 'ng2-alfresco-core';
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
|
|
||||||
import { AlfrescoLoginComponent } from './src/components/alfresco-login.component';
|
import { AlfrescoLoginComponent } from './src/components/alfresco-login.component';
|
||||||
|
|
||||||
export * from './src/components/alfresco-login.component';
|
export * from './src/components/alfresco-login.component';
|
||||||
|
|
||||||
export const ALFRESCO_LOGIN_DIRECTIVES: any[] = [AlfrescoLoginComponent];
|
export const ALFRESCO_LOGIN_DIRECTIVES: any[] = [
|
||||||
|
AlfrescoLoginComponent
|
||||||
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -36,4 +38,10 @@ export const ALFRESCO_LOGIN_DIRECTIVES: any[] = [AlfrescoLoginComponent];
|
|||||||
...ALFRESCO_LOGIN_DIRECTIVES
|
...ALFRESCO_LOGIN_DIRECTIVES
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class LoginModule { }
|
export class LoginModule {
|
||||||
|
static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: CoreModule
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { CoreModule } from 'ng2-alfresco-core';
|
import { CoreModule } from 'ng2-alfresco-core';
|
||||||
import { DataTableModule } from 'ng2-alfresco-datatable';
|
import { DataTableModule } from 'ng2-alfresco-datatable';
|
||||||
|
|
||||||
@ -39,10 +39,14 @@ export const WEBSCRIPT_DIRECTIVES: any[] = [
|
|||||||
declarations: [
|
declarations: [
|
||||||
...WEBSCRIPT_DIRECTIVES
|
...WEBSCRIPT_DIRECTIVES
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
...WEBSCRIPT_DIRECTIVES
|
...WEBSCRIPT_DIRECTIVES
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class WebScriptModule {}
|
export class WebScriptModule {
|
||||||
|
static forRoot(): ModuleWithProviders {
|
||||||
|
return {
|
||||||
|
ngModule: WebScriptModule
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user