How to use the angular-calendar.CalendarModule.forRoot function in angular-calendar

To help you get started, we’ve selected a few angular-calendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github runbox / runbox7 / src / app / calendar-app / calendar-app.module.ts View on Github external
MatDialogModule,
    MatFormFieldModule,
    MatIconModule,
    MatInputModule,
    MatListModule,
    MatProgressSpinnerModule,
    MatSelectModule,
    MatSidenavModule,
    MatToolbarModule,
    MatTooltipModule,
    ReactiveFormsModule,
    OwlDateTimeModule,
    OwlNativeDateTimeModule,
    // angular-calendar stuff
    CommonModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    })
  ],
  entryComponents: [
    CalendarEditorDialogComponent,
    CalendarSettingsDialogComponent,
    ColorSelectorDialogComponent,
    DeleteConfirmationDialogComponent,
    EventEditorDialogComponent,
    ImportDialogComponent,
  ],
  providers: [
    CalendarService,
  ],
  bootstrap: [CalendarAppComponent]
github mattlewis92 / angular-calendar / projects / demos / app / demo-modules / responsive-week-view / module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { DemoComponent } from './component';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';

@NgModule({
  imports: [
    CommonModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    RouterModule.forChild([{ path: '', component: DemoComponent }])
  ],
  declarations: [DemoComponent],
  exports: [DemoComponent]
})
export class DemoModule {}
github mattlewis92 / angular-calendar / projects / demos / app / demo-modules / drag-to-create-events / module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { DemoComponent } from './component';
import { DemoUtilsModule } from '../demo-utils/module';

@NgModule({
  imports: [
    CommonModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    DemoUtilsModule,
    RouterModule.forChild([{ path: '', component: DemoComponent }])
  ],
  declarations: [DemoComponent],
  exports: [DemoComponent]
})
export class DemoModule {}
github mattlewis92 / angular-calendar / projects / demos / app / demo-modules / kitchen-sink / module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { FlatpickrModule } from 'angularx-flatpickr';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { NgbModalModule } from '@ng-bootstrap/ng-bootstrap';
import { DemoComponent } from './component';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    NgbModalModule,
    FlatpickrModule.forRoot(),
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    })
  ],
  declarations: [DemoComponent],
  exports: [DemoComponent]
})
export class DemoModule {}
github mattlewis92 / angular-calendar / projects / demos / app / demo-modules / async-events / module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { RouterModule } from '@angular/router';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { DemoUtilsModule } from '../demo-utils/module';
import { DemoComponent } from './component';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';

@NgModule({
  imports: [
    CommonModule,
    HttpClientModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    DemoUtilsModule,
    RouterModule.forChild([{ path: '', component: DemoComponent }])
  ],
  declarations: [DemoComponent],
  exports: [DemoComponent]
})
export class DemoModule {}
github freenas / webui / src / app / pages / task-calendar / task-calendar.module.ts View on Github external
import { SmartFormComponent } from './smart/smart-form/smart-form.component';
import { ReplicationListComponent } from 'app/pages/task-calendar/replication/replication-list';
import { ReplicationFormComponent } from 'app/pages/task-calendar/replication/replication-form';
import { ReplicationService } from 'app/pages/task-calendar/replication/replication.service';
import { ScrubListComponent } from './scrub/scrub-list/scrub-list.component';
import { ScrubFormComponent } from './scrub/scrub-form/scrub-form.component';
import { CloudsyncListComponent } from './cloudsync/cloudsync-list/cloudsync-list.component';
import { CloudsyncFormComponent } from './cloudsync/cloudsync-form/cloudsync-form.component';
import { ResilverComponent } from './resilver/resilver.component';

@NgModule({
  imports: [
    CommonModule,
    MaterialModule,
    FlexLayoutModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    RouterModule.forChild(TaskCalendarRoutes),
    EntityModule,
    FormsModule,
    ReactiveFormsModule,
    TranslateModule
  ],
  declarations: [
    TaskCalendarComponent,
    CronFormComponent,
    CronListComponent,
    InitshutdownListComponent,
    InitshutdownFormComponent,
    SnapshotListComponent,
github mattlewis92 / angular-calendar / projects / demos / app / demo-modules / disable-tooltips / module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { DemoUtilsModule } from '../demo-utils/module';
import { DemoComponent } from './component';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';

@NgModule({
  imports: [
    CommonModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    DemoUtilsModule,
    RouterModule.forChild([{ path: '', component: DemoComponent }])
  ],
  declarations: [DemoComponent],
  exports: [DemoComponent]
})
export class DemoModule {}
github mattlewis92 / angular2-tv-tracker / src / app / modules / +schedule / index.ts View on Github external
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CommonModule } from '@angular/common';
import { CalendarModule } from 'angular-calendar';
import { ScheduleCalendarComponent } from './schedule.component';
import { SubscribedShowsEpisodesResolver } from './subscribed-shows-episodes.resolver';
import { SharedModule } from './../shared';

@NgModule({
  declarations: [
    ScheduleCalendarComponent
  ],
  imports: [
    CommonModule,
    SharedModule,
    CalendarModule.forRoot(),
    RouterModule.forChild([
      {
        path: '',
        component: ScheduleCalendarComponent,
        resolve: {
          subscribedShowsWithEpisodes: SubscribedShowsEpisodesResolver
        }
      }
    ])
  ],
  providers: [SubscribedShowsEpisodesResolver]
})
export class ScheduleModule {}
github buildabeer / buildabeer / brew_wizard_ui / src / app / app.module.ts View on Github external
RadarChartComponent,
    SourcesComponent,
    LicenseComponent,
    HopRelationsComponent,
    YeastRelationsComponent,
    StyleYeastRelationsComponent,
    ResourcesComponent,
  ],
  imports: [
    AppRoutingModule,
    BrowserModule,
    FormsModule,
    HttpModule,
    NgbModule.forRoot(),
    BrowserAnimationsModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    }),
    AngularTokenModule.forRoot(environment.token_auth_config),
    HttpClientModule
  ],
  providers: [AngularTokenModule, AuthGuard, AuthService, WaterProfileService,
                AgentService, MaltService, StyleService, HopService,
                YeastService, EquipmentService, RecipeService, DesignerService,
                CanDeactivateGuard, SaveDialogService, UserService, MiscellaneousService,
                AcidService, GoogleAnalyticsService],
  bootstrap: [AppComponent]
})
export class AppModule {
    constructor(protected _googleAnalyticsService: GoogleAnalyticsService) { }
}
github wpcfan / taskmgr / src / app / my-calendar / index.ts View on Github external
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { CalendarRoutingModule } from './my-calendar-routing.module';
import { CalendarHomeComponent } from './calendar-home';

@NgModule({
  declarations: [CalendarHomeComponent],
  imports: [
    SharedModule,
    CalendarRoutingModule,
    CalendarModule.forRoot({
      provide: DateAdapter,
      useFactory: adapterFactory
    })
  ]
})
export class MyCalendarModule {}