Back to Nativescript

page

apps/automated/src/ui/page/page.md

9.1.1-core554 B
Original Source

Page

Using a page requires the Page module. {%snippet article-require-page-module%}

Attaching event handler for the Page loaded event to set bindingContext.

XML
<Page loaded="pageLoaded">
  {%raw%}<Label text="{{ name }}" />{%endraw%}
</Page>

{%snippet article-set-bindingcontext%}

Creating and navigating to the created page.

{%snippet article-create-navigate-to-page%}

{%snippet article-navigating-backward%}

Pass data to the new page.

{%snippet article-pass-data%}