Comments (7)
This will be fixed soon without using value
and valueChange
. FYI, the branch work in progress. https://github.com/ng2-ui/ng2-datetime-picker/tree/ngModel-enhanced
from datetime-picker.
This has been fixed with the release of 0.9.0. Please verify it is fixed and close it. If not, please let us know.
from datetime-picker.
It should be possible. If not, it should be a bug.
from datetime-picker.
So, I just need to set my variable as null?
or is there a tag to do that?
here is my code on HTML file:
<input type="text" maxlength="10" (valueChange)="onValueChange($event)" datetime-picker date-only="true" date-format="DD/MM/YYYY" [(ngModel)]="dateOptional" [ngModelOptions]="{standalone: true}" class="form-control" id="dateOptional">
and in typescript file, I just set a null variable, as follows:
public dateOptional = null;
from datetime-picker.
Thanks a lot!
from datetime-picker.
Thanks a lot!
from datetime-picker.
Thanks a lot!!
from datetime-picker.
Related Issues (20)
- Too Many Years to Show
- How to use show-time-12-hour format HOT 1
- Change min-width on time-only mode
- Need MM/DD/YYYY hh:mm a format time but ... HOT 2
- defaultvalue.getTime is not a function - error HOT 2
- How can I set an event such as change, select in datetimepicker?
- Bug: [close-on-select]="false" does not work on mobiles properly
- How to clear the selected value
- default times doesn't work HOT 2
- How can I change the look of the "X" close button HOT 3
- Datetime-picker popup overlaps input field HOT 1
- the datetime picker cannot update when user modifying value HOT 3
- Dropdown goes beyond right edge of the page when input close to right edge HOT 2
- Override default style Not Working
- How enable Saturday and Sunday HOT 2
- Unable to use with moment loaded as an import
- Popup calendar always displaying time in browser's default timezone
- DatePicke popup is not working in iPhone 5
- Enhancement: `enabled-dates` attribute
- [min-date] and [max-date] causes unusability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datetime-picker.