UI Component For Creating Cron Job Syntax To Send To Server
##DEMO ##Installation
Install using bower:
bower install angular-cron-jobs
##Use:
Include the component in your application:
angular.module('myApp', ['angular-cron-jobs']);
Insert the directive where you would like it to appear in your application:
<cron-selection output="myOutput"></cron-selection>
By setting the output attribute equal to a value in your controller (i.e. $scope.myOutput
in the example above) you have access to the cron syntax output.
For example, a job selected to run every month on the 11th at 4:10 AM would output the follow:
'10 4 11 * *'
as a string.
##Coming Soon:
The next big to-do's on my list include:
- adding an options attribute to limit a user selections.
- creating a customize button that will toggle a much more complicated UI to allow for very specific and unique cron jobs.