ngx-cron-jobs
Angular > 2 version of angular-cron-jobs (http://angular-cron-jobs.github.io/angular-cron-jobs)
Installation
To install this library, run:
$ npm install ngx-cron-jobs --save
$ yarn add ngx-cron-jobs
Consuming your library
and then from your Angular AppModule
:
import { CronJobsModule } from 'ngx-cron-jobs';
@NgModule({
imports: [
...,
CronJobsModule,
...
]
})
export class AppModule { }
Once your library is imported, you can use its components, directives and pipes in your Angular application:
<cron-jobs [(ngModel)]="hero.frequency"></cron-jobs>
<cron-jobs [formControl]="freqControl"></cron-jobs>
<cron-jobs [formControl]="freqControl" [config]="cronConfig" [validate]="cronValidate"></cron-jobs>
Configuration:
The component takes an attribute of config
Options
This is an object in your controller you can use to remove options from the user. For example if you would like the user to be able to set Minute, Hour, and Day but not Week, Month, and Year you would create the following object in your controller:
{
quartz: true,
multiple: false,
options : {
minute : false
}
}
Development
License
MIT © Daniel 'yp2' Derezinski
Contributors
From angular 1 project
@wowo
@immertreu
@TSteele27
@DmitryEfimenki
From angular2-cron-jobs project
@rvalenciano
From ngx-cron-jobs project
Daniel 'yp2' Derezinski