-
Notifications
You must be signed in to change notification settings - Fork 397
Directive amCalendar doesn't support any parameter #175
Comments
A side issue is that to be consistent, the format should be the second argument of The other option would be to append a new parameter to the end of the filter, but this would mean that in order to change just the format the user would need to pass 2 undefined parameters every time, which is kinda ugly. Also it would be inconsistend with other directives. There are a couple of additional options:
Each solution has its pros and cons. IMHO keeping the consistency is more important than not breaking the interface, but that would mean to bump a major version for a somewhat minor feature. |
hi @kaililleby , thank you for your inputs! Please see the discussion in #174, about removing the preprocessors and simplifying the API... |
There is somewhat a date for this feature to be ready? I would like to use it! |
Feel free to send a pull request :-) If you do, please make sure to add a unit-test and update README with the new parameters. Thanks! |
I just solved changing the logic for the date in order to use just |
Quick fix
|
The directive for
amCalendar
doesn't support any parameter, while the moment.jscalendar()
method offers the possibility to customize the format string since version 2.10.5.angular-moment
should allow to pass some parameters to customize the date format.cfr. http://momentjs.com/docs/#/displaying/calendar-time/
The text was updated successfully, but these errors were encountered: