[英]how to use input type date in my angular4 app? current browser is mozilla firefox
I'm currently working in Angular4 app. 我目前在Angular4应用中工作。 And I used input type date, it is working in chrome, but not working in mozilla.
我使用输入类型date,它在chrome中工作,但在mozilla中不工作。 How to solve this issue?
如何解决这个问题? I thought I can use jQueryUi datepicker, but it makes some issues as well.
我以为我可以使用jQueryUi datepicker,但这也会带来一些问题。
Any ideas about this? 有什么想法吗?
You could use the Angular Material Datepicker its worked for me both on chrome and firefox with no issues. 您可以在chrome和firefox上使用对我有用的Angular Material Datepicker ,没有问题。
Solved this issues using jQuery Ui datepicker. 使用jQuery Ui datepicker解决了此问题。 Like this.
像这样。
import { Component, AfterViewInit, ElementRef, ViewChild } from '@angular/core'; ... declare var $: any; export class MyClass implements AfterViewInit { @ViewChild('datepicker1') el1: ElementRef; ... ngAfterViewInit() { $(this.el1.nativeElement).datepicker();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.