Setting active datetime without ngModel not possible?
See original GitHub issueWhen I set [defaultMoment]="someDate"
, it does show the appropriate month and time, but the date is not marked as active one.
If this is expected behavior of defaultMoment
, can we have another option to set the active date manually? ngModel is not an option in my case, as I use very custom implementation. Maybe some [activeDate]
or inputEvent [setActiveDate]
?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Angular 2: How to use JavaScript Date Object with NgModel ...
when I wrote this answer DatePipe did not exist, now you can just do this <input [ngModel]="startDate | date:'yyyy-MM-dd'" ...
Read more >Responsive date & time picker documentation for Angular
Browse the full developer documentation and learn how to use the Mobiscroll Date & Time to build responsive UIs in Angular and Ionic...
Read more >ngModelOptions - AngularJS: API
Overview. This directive allows you to modify the behaviour of ngModel directives within your application. You can specify an ngModelOptions directive on ...
Read more >Angular Forms Guide: Template Driven and Reactive Forms
Unlike the case of AngularJs, ngModel and other form-related directives are not available by default, we need to explicitly import them in our ......
Read more >Two-Way Data Binding in Angular with ngModel - Infragistics
The direction of a two-way binding is not just component class to UI, but UI to component class as well. To achieve this,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@trsh Come on man, you can’t just throw a question, and expect someone to give a perfect answer. You just put down couples of meaningless code lines and not even try to reproduce the problem with readable and runnable codes (Plunker or Git project). For what i can tell from you lines, you used angular materials. Angular Material has their own calendar, you could use it if you want.
PS: Github is a open source library and not a Google-Search-And-Give-Me-Perfect-Answer engine.
@DanielYKPan angular material has no timepicker. If it would I’ll be sure using it. I got around my problems with few hacks.