add missing 'forRoot' implementatitions (#1369)

This commit is contained in:
Denys Vuika
2017-01-03 17:21:23 +00:00
committed by Vito
parent 4ea3187e7a
commit 512f6504f2
4 changed files with 30 additions and 14 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CoreModule } from 'ng2-alfresco-core';
export * from './src/data/index';
@@ -39,10 +39,14 @@ export const ALFRESCO_DATATABLE_DIRECTIVES: [any] = [
declarations: [
...ALFRESCO_DATATABLE_DIRECTIVES
],
providers: [
],
exports: [
...ALFRESCO_DATATABLE_DIRECTIVES
]
})
export class DataTableModule {}
export class DataTableModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: DataTableModule
};
}
}