concept logic in category nativescript

This is an excerpt from Manning's book NativeScript in Action.
On this page, you could place a Scroll View around the entire page or around the article text. But which choice is right? There may not be a right choice, but I recommend making the entire page scrollable. Why? My answer comes from more feeling than logic. Mobile apps are about good user experience, and I believe that if I were to only make the article text scrollable, it would make my finger swipe gestures feel restricted, especially on smaller phones. When scrolling, I typically like to make broad sweeping strokes, or moderately long, quick flicks with my finger. If the scrollable space is too small, broader strokes won’t feel natural. So, on smaller screens, it makes sense to scroll the entire page.
Step 5: Add routing logic to the Home component to navigate to the List component
Listing 17.15 The select-date.component.ts file that defines the logic and functionality
import { Component } from "@angular/core"; import { ModalDialogParams } from "nativescript-angular/modal-dialog"; #1 @Component({ selector: "select-date", templateUrl: "views/modals/select-date/select-date.html", styleUrls: ["views/modals/select-date/select-date.css"] }) export class SelectDateComponent { date: any; constructor(private params: ModalDialogParams) { #2 this.date = params.context; #2 } #2 onDoneTap(): any { this.params.closeCallback(this.date); #3 } } #1 To read parameters passed into modals, you need ModalDialogParams #2 The data-bound date property is set to an initial value, passed in via a parameter #3 The modal returns the selected date when it closes