-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pray-times.module.ts
47 lines (37 loc) · 1.51 KB
/
pray-times.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { NgModule, NO_ERRORS_SCHEMA, OnInit } from '@angular/core';
import { NativeScriptCommonModule } from 'nativescript-angular/common';
import { NativeScriptFormsModule } from "nativescript-angular/forms"
import { NativeScriptUICalendarModule } from 'nativescript-ui-calendar/angular';
import { MenuModule } from '../menu/menu.module';
import { PrayTimesService } from './pray-times.service'
import { CalendarStylesService } from './calendar-styles.service'
import { PrayTimesRoutingModule } from './pray-times-routing.module';
import { PrayTimesCalendarComponent } from './pray-times-calendar/pray-times-calendar.component';
import { SettingsService } from '../services/settings.service';
@NgModule({
declarations: [PrayTimesCalendarComponent],
imports: [
NativeScriptUICalendarModule,
NativeScriptFormsModule,
NativeScriptCommonModule,
PrayTimesRoutingModule,
MenuModule
],
schemas: [NO_ERRORS_SCHEMA],
exports: [PrayTimesCalendarComponent],
entryComponents: [PrayTimesCalendarComponent],
providers: [PrayTimesService, CalendarStylesService]
})
export class PrayTimesModule implements OnInit {
private readonly _version: number;
public static readonly MODULE_NAME = "PrayTimes";
constructor(private _settings: SettingsService) {
this._version = 201907222045;
};
/**
* Inicializa toda a aplicação para uso com Angular
*/
ngOnInit() {
this._settings.checkVersion(PrayTimesModule.MODULE_NAME, this._version);
}
}