saturn range in angular display end date 1

saturn range in angular display end date

[startAt]="startDate"

Here is what the above code is Doing:
1. We’re importing the DatePickerModule from the ng2-datepicker module.
2. We’re adding the DatePickerModule to the imports array of the AppModule.
3. We’re adding the datepicker component to the declarations array of the AppModule.
4. We’re adding the datepicker component to the template of the AppComponent.
5. We’re adding the startDate property to the AppComponent class.
6. We’re binding the startDate property to the startAt property of the datepicker component.

Now, if you run the application, you should see the datepicker component in the browser.

Similar Posts