@totvs-agro/t-notification
Version:
Componente Totvs para notificações
58 lines • 2.68 kB
JavaScript
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { NgModule } from '@angular/core';
import { IonicModule } from 'ionic-angular';
import { TotvsNotificationProvider } from './providers/totvs-notification-provider';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient } from '@angular/common/http';
import { TotvsTranslateProvider, TotvsTranslateModule, } from "@totvs-agro/t-translate";
// The translate loader needs to know where to load i18n files
// in Ionic's static asset pipeline.
export function createTranslateLoader(http) {
return new TranslateHttpLoader(http);
}
var ɵ0 = (createTranslateLoader);
var TotvsNotificationModule = /** @class */ (function () {
function TotvsNotificationModule() {
}
TotvsNotificationModule_1 = TotvsNotificationModule;
TotvsNotificationModule.forRoot = function () {
return {
ngModule: TotvsNotificationModule_1,
providers: [TotvsNotificationProvider, TotvsTranslateProvider],
};
};
var TotvsNotificationModule_1;
TotvsNotificationModule = TotvsNotificationModule_1 = __decorate([
NgModule({
imports: [
// Only if you use elements like ion-content, ion-xyz...
IonicModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: ɵ0,
deps: [HttpClient]
},
isolate: true
}),
TotvsTranslateModule
],
declarations: [
// declare all components that your module uses
],
exports: [
// export the component(s) that you want others to be able to use
]
})
], TotvsNotificationModule);
return TotvsNotificationModule;
}());
export { TotvsNotificationModule };
export { ɵ0 };
//# sourceMappingURL=totvs-notification-mobile.module.js.map