How to use ng2-date-picker - 1 common examples

To help you get started, we’ve selected a few ng2-date-picker 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 lordfriend / Deneb / src / app / admin / announce / edit-announce / edit-announce.component.ts View on Github external
selector: 'admin-edit-announce',
    templateUrl: './edit-announce.html',
    styleUrls: ['./edit-announce.less']
})
export class EditAnnounceComponent implements OnInit, OnDestroy {
    private _subscription = new Subscription();

    @Input()
    announce: Announce;

    announceForm: FormGroup;

    position = 1;

    dpConfig:IDatePickerConfig = {
        returnedValueType: ECalendarValue.Moment
    };


    validationMessages = {
        sort_order: {
            'required': 'sort order不能为空'
        },
        content: {
            'required': 'url不能为空'
        },
        image_url: {
            'required': 'image_url不能为空'
        },
        start_time: {
            'required': '开始时间不能为空',
        },

ng2-date-picker

https://github.com/vlio20/angular-datepicker

MIT
Latest version published 5 months ago

Package Health Score

78 / 100
Full package analysis

Popular ng2-date-picker functions