GithubHelp home page GithubHelp logo

Comments (4)

vincentjames501 avatar vincentjames501 commented on June 12, 2024

Maybe it's not finding our options? Can you supply more of a code sample so I can help debug?

from angular-cron-gen.

JHouck1230 avatar JHouck1230 commented on June 12, 2024

This is the only element in the body:

<div class="container"> <cron-gen ng-model="cronExpression" options="cronOptions" ng-disabled="isCronDisabled"> </cron-gen> </div>

And this is the entirety of the JavaScript:
'use strict';

angular.module('app', ['angular-cron-gen'])
.controller('mainCtrl', function($scope) {
$scope.cronExpression = '0 0 0/3 1/1 * ? *';
$scope.isCronDisabled = false;
$scope.cronOptions = {
formInputClass: 'form-control cron-gen-input',
formSelectClass: 'form-control cron-gen-select',
formRadioClass: 'form-control-static cron-gen-radio',
formCheckboxClass: 'form-control-static cron-gen-checkbox',
hideMinutesTab: false,
hideHourlyTab: false,
hideDailyTab: false,
hideWeeklyTab: false,
hideMonthlyTab: false,
hideYearlyTab: false,
hideAdvancedTab: false,
use24HourTime: false,
hideSeconds: false
}
});

There are no errors in the console. This is the script load order:

<script src="/bower_components/jquery/dist/jquery.min.js"></script> <script src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script> <script src="/bower_components/angular/angular.min.js"></script> <script src="/bower_components/angular-cron-gen/build/cron-gen.min.js"></script> <script src="module.js"></script>

from angular-cron-gen.

JHouck1230 avatar JHouck1230 commented on June 12, 2024

Upon further troubleshooting, it seems an installation from npm/bower does not have the seconds field. Cloning the repo directly has everything though.

from angular-cron-gen.

vincentjames501 avatar vincentjames501 commented on June 12, 2024

I just published 0.0.21. Hopefully that fixes it for you.

from angular-cron-gen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.