angular-datetime icon indicating copy to clipboard operation
angular-datetime copied to clipboard

Create a new version for angular 2+

Open maximepvrt opened this issue 5 years ago • 5 comments

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

maximepvrt avatar Aug 07 '18 19:08 maximepvrt

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.

eight04 avatar Aug 08 '18 06:08 eight04

@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.

AashishKJha avatar Jun 07 '19 13:06 AashishKJha

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 avatar Jun 07 '19 14:06 eight04

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

eight04 avatar Jun 07 '19 14:06 eight04

@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?

jsasmitha avatar Sep 29 '21 05:09 jsasmitha