Angular2 AryaNet Core
To install this library, run:
$ npm install ng2-aryanet-core --save
$ npm install ng2-aryanet-core
and then from your Angular AppModule
:
import { AryaNetCoreModule } from './core/core.module';
import { AppConfigService } from './core/services/app-config.service';
import { HttpInterceptedService } from './core/interceptors/http-interceptor.service';
import { AppErrorHandler } from './core/utils/error-handler';
@NgModule({
declarations: [
...
],
imports: [
...
AryaNetCoreModule
],
providers: [
AppConfigService,
{
provide: APP_INITIALIZER,
useFactory: init,
multi: true,
deps: [AppConfigService]
},
{ provide: ErrorHandler, useClass: AppErrorHandler },
]
})
export class AppModule { }
MIT © AryaNet