change tsconfig,module name ,karma.conf,karma-tst-shim and #749

This commit is contained in:
Eugenio Romano
2016-10-06 11:56:07 +01:00
parent 0bf41768a7
commit 12914e0680
74 changed files with 412 additions and 528 deletions

View File

@@ -15,4 +15,36 @@
* limitations under the License.
*/
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CoreModule } from 'ng2-alfresco-core';
import { AnalyticsComponent } from './src/components/analytics.component';
import { CHART_DIRECTIVES } from 'ng2-charts/ng2-charts';
export * from './src/components/analytics.component';
export const ANALYTICS_DIRECTIVES: any[] = [
AnalyticsComponent
];
@NgModule({
imports: [
CoreModule
],
declarations: [
...ANALYTICS_DIRECTIVES,
CHART_DIRECTIVES
],
exports: [
...ANALYTICS_DIRECTIVES
]
})
export class AnalyticsModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: AnalyticsModule,
providers: [
...ANALYTICS_DIRECTIVES
]
};
}
}