I have defined type='date' and calander is coming but i want that when calander popsup for editing the date the previous is should be seleted

Viewed 19
<input class="radio_type" type="radio" formControlName="scheduleNow" value="later" checked>Later
                </label>

                                <div class="date-time-para">
                                    <div class="box-date">
                                        <label class="font-weight-bold"> Select Date {{notificationDetails.scheduled_date}}</label>
                                        <input type="date" formControlName="notificationDate" placeholder="Select Date" class="input-sample" placeholder="Select Date" [(ngModel)]="notificationDetails.scheduled_date">
                                        <div class="form-group">
                                            <label for="fromDate">From </label>
                                            <input type="date" id="fromDate" [(ngModel)]="notificationDetails.scheduled_date" name="fromDate"> {{notificationDetails.scheduled_date}}
                                        </div>

                                    </div>
                                    <div class="box-date">
                                        <label class="font-weight-bold">Select Time</label>
                                        <input type="time" formControlName="notificationTime" placeholder="Select Date" class="input-sample" placeholder="Select Date" [(ngModel)]="notificationDetails.scheduled_time">
                                    </div>
                                </div>
                            </div>
                        </div>
              

how to format calander, so when i edit that the calander should show previous date seleted using property binding in angular can anyone help me in this then, above code i have written but it is not working in angular

<input type="date" id="fromDate" [(ngModel)]="notificationDetails.scheduled_date" name="fromDate"> {{notificationDetails.scheduled_date}} this code i m using for dynamic binding which is not working

0 Answers
Related