eight04 / angular-datetime

A directive to add the behavior of datetime input on unsupported browsers.
MIT License
93 stars 28 forks source link

Create a new version for angular 2+ #65

Closed maximepvrt closed 1 year ago

maximepvrt commented 6 years ago

Your directive is so cool 😍 I use it on all my angularJS projects, I want to do same on my new projects :-)

eight04 commented 6 years ago

I have never used Angular 2+ before. Maybe someday, but I'm pretty sure it takes time. It would be nice if someone can help.

AashishKJha commented 5 years ago

@eight04 Hi, I am trying to create this directive in angular v7, I can feel it is taking lots of time to understand the code. But thanks a lot for such kind of easy directive.

eight04 commented 5 years ago

You can check out custom-input first. Basically, you have to:

  1. Convert a date format definition string e.g. (YYYY-mm-dd) into a list of tokens that can be used by TextParser.
  2. Extend/wrap the parser instance so it can store a timezone.
  3. Bind the parser instance to the view by using InputMask.
eight04 commented 5 years ago

I wrote these stuff several years ago. Please tell me if the document is hard to understand.

jsasmitha commented 3 years ago

@eight04 Hi, I am trying to create this directive in angular v7, I can feel it is taking lots of time to understand the code. But thanks a lot for such kind of easy directive.

Have u created a directive for angular v7?