Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-cron-jobs

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-cron-jobs

This repository contains an Angular > 2 version of [angular-cron-jobs](http://angular-cron-jobs.github.io/angular-cron-jobs).

  • 14.2.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-21.59%
Maintainers
3
Weekly downloads
 
Created
Source

ngx-cron-jobs

This repository contains an Angular > 2 version of angular-cron-jobs.

Installation

🎉 ngx-cron-jobs supports Angular 14 🎉

To install the latest version (14.2.4) of ngx-cron-jobs

$ npm install ngx-cron-jobs  --save

or

$ yarn add ngx-cron-jobs

This is a hacktoberfest friendly repository 🎃

Here are the following current enhancements

Other enhancements are very, very welcome as well!

- Happy hacking! 🥳


To install this library for Angular <=5, run:

$ npm install ngx-cron-jobs@0.x.x  --save
$ yarn add ngx-cron-jobs@0.x.x

where x.x is 4.9. Is should look like this 0.4.9. Line for Angular 5 will have major set to 0.

To install this library for Angular 6, run:

$ npm install ngx-cron-jobs@6.x.x  --save
$ yarn add ngx-cron-jobs@6.x.x

where x.x is 4.10. Is should look like this 6.4.10. Line for Angular 6 will have major set to 6.

To install this library for Angular 7, run:

$ npm install ngx-cron-jobs@7.x.x  --save
$ yarn add ngx-cron-jobs@7.x.x

where x.x is 4.10. Is should look like this 7.4.10 Line for Angular 6 will have major set to 6.

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:

<!-- To insert to in your component minimal config with ngModel -->
<cron-jobs [(ngModel)]="hero.frequency"></cron-jobs>

<!-- To insert to in your component minimal config with reactive forms -->
<cron-jobs [formControl]="freqControl"></cron-jobs>

<!-- To insert to in your component minimal config with reactive forms -->
<!-- additional parameters -->
<cron-jobs [formControl]="freqControl" [config]="cronConfig"  [validate]="cronValidate"></cron-jobs>

Configuration:

The component takes an input of [config] and [validate]

Options

Plugin maybe configured by config object to which should be pass in [config] input.

List of options:

OptionTypeDescription
quartzboolean (false)Use quartz syntax rather then cron syntax in control output
multipleboolean (false)Enable multi select in plugin selects
bootstrapboolean (true)Use bootstrap 4 html and css classes to build plugin forms
optionobjectAdditional options
option.minuteboolean (true)remove (false) or add minute to plugin select to control user ability to set cron expression.
option.hourboolean (true)remove (false) or add hour to plugin select to control user ability to set cron expression.
option.dayboolean (true)remove (false) or add day to plugin select to control user ability to set cron expression.
option.weekboolean (true)remove (false) or add week to plugin select to control user ability to set cron expression.
option.monthboolean (true)remove (false) or add month to plugin select to control user ability to set cron expression.
option.yearboolean (true)remove (false) or add year to plugin select to control user ability to set cron expression.

Additional to this plugin supports validation config ([validate] input):

OptionTypeDescription
validateboolean (false)Add validation classes if controls are invalid.

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

Mads 'madsthom' Smed

Keywords

FAQs

Package last updated on 15 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc