Topic: Datepicker not working with latest Angular 2.4.0
GregLange
pro
asked 6 years ago
Piotr Bender
free
answered 5 years ago
Hello,In response to your issue, I wanted to let you know about just released MDBootstrap Angular kit, that may be a sufficient solution to this or any other issues you have had with Angular integration so far.The kit can be found at the following link:https://mdbootstrap.com/angular/It contains all the components you could find in MDB jQuery version.We encourage you to try it out and report any bugs or issues at contact@mdbootstrap.com with [Angular] prefix or create a thread on this forum.Have a great day!
Kamil Paciepnik
free
answered 6 years ago
kepner
priority
answered 6 years ago
import { Component} from '@angular/core';
@Component ({
template:<input placeholder="Selected date" type="text" id="birthday" class="form-control datepicker" value={{u.birthday}}>
})
export class MyComponent implements OnInit{
constructor(){}
ngOnInit(){
setTimeout(function(){
$('.datepicker').pickadate();
},1)
}
}
Note ` is missing before and after the template text.
If one is not enough you can try to increase it to 10/100 etc..
GregLange
pro
answered 6 years ago
GregLange
pro
answered 6 years ago
GregLange
pro
answered 6 years ago
Kamil Paciepnik
free
answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No