Guest User

Untitled

a guest
Jun 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. ngOnInit() {
  2. this.bsConfig = {
  3. containerClass: 'theme-red',
  4. dateInputFormat: 'MM-dd-yyyy'
  5. };
  6. }
  7.  
  8. <input class="form-control"
  9. type="text" bsDatepicker
  10. [bsConfig]="bsConfig"
  11. placeholder="Date of Birth"
  12. [(bsValue)]="participant.dob" value="{{ participant.dob | date:'yyyy-MM-dd' }}"
  13. name="dob"
  14. [(ngModel)]="participant.dob"
  15. #dob="ngModel">
Add Comment
Please, Sign In to add comment