Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Datepicker Angular2 #3062


User avatar
0
onecontact created

Hi guys, I want to implement the datepicker component : bootstrap-datepicker like the metronic theme, I added the css and the js to .angular-cli.json, and implement as component like

@ViewChild('dateInput') dateInput: ElementRef;
$(this.dateInput.nativeElement).datepicker({
        orientation: "bottom auto"
      });
<input #dateInput name="DocumentDate" class="form-control"  [ngClass]="{'edited':sale.documentDate}" [(ngModel)]="sale.documentDate" required>
                
                <label>{{l("DocumentDate")}}</label>

but not work, I check the styles and are another declarations for css datepicker on plugins.css and plugins-md.css, but doesn't work yet, you have a implementation of this? im using the aspnetcore (with .net 4.6) and angular2 project

CHeers


1 Answer(s)