concept select - date component in category nativescript
appears as: select-date component

This is an excerpt from Manning's book NativeScript in Action.
Notice the naming convention of the select-date component. Components (and various other entities like services) use a dash in the file name when the name is compound (like select-date). This is an Angular-specific style guide rule outlined online at https://angular.io/styleguide.
Listing 17.14 The select-date.html file that defines the UI of the select-date component (and modal)
<StackLayout> <DatePicker [(ngModel)]="date"></DatePicker> #1 <Button class="btn btn-primary btn-rounded-sm btn-active" text="Done" (tap)="onDoneTap()" > </Button> </StackLayout> #1 DatePicker elements can be bound with ngModelThe UI markup for the select-date component is quite simple. One item to note that you’ll recognize from earlier in this chapter is the date picker element is bound using ngModel to enable two-way databinding.