NativeScript Public/Global Functions
<p>Sample Codes:</p>

<pre><code>exports.toggleSideDrawer = function() {
  frameModule.topmost().getViewById("sideDrawer").toggleDrawerState();
}
</code></pre>

<p>How can I use <code>toggleSideDrawer</code> without write it in every code-behind file?</p>

<p>For example, I have page A and B, in both of those pages, there's <code>tap="toggleSideDrawer"</code>.</p>

<p>In short, make it available to all views/pages in the app.</p>