question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting active datetime without ngModel not possible?

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DanielYKPancommented, Nov 25, 2017

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

0reactions
trshcommented, Nov 26, 2017

@DanielYKPan angular material has no timepicker. If it would I’ll be sure using it. I got around my problems with few hacks.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found