Skip to content

Commit 07f7caf

Browse files
committed
Include Jen’s changes in the generated source
1 parent c609e3c commit 07f7caf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ <h4 class="exercise-start">
14301430
<div class="chapter">
14311431
<h2 id="plugins-and-npm-modules">Plugins and npm modules</h2>
14321432
<p>As you build more complex apps, you&#39;ll likely run into functionality that is not implemented in the NativeScript modules. But no worries, as NativeScript lets you leverage <a href="https://www.npmjs.com/">npm</a> (node package manager) to import npm modules into your apps. Alternately, you can install NativeScript plugins, which are simply npm modules that can access native code and use Android and iOS SDKs, if required. </p>
1433-
<p>In this chapter, you&#39;ll install and use and external email validator module to verify the format of email addresses as they are entered on the registration screen. Then, you&#39;ll add a NativeScript plugin, <a href="https://www.npmjs.com/package/nativescript-social-share">NativeScript social share</a>, to let users share their grocery lists using their device&#39;s native sharing widget.</p>
1433+
<p>In this chapter, you&#39;ll install and use an external email validator module to verify the format of email addresses as they are entered on the registration screen. Then, you&#39;ll add a NativeScript plugin, <a href="https://www.npmjs.com/package/nativescript-social-share">NativeScript social share</a>, to let users share their grocery lists using their device&#39;s native sharing widget.</p>
14341434
<h3 id="using-npm-modules">Using npm modules</h3>
14351435
<p>It would be nice to be able to make sure people are entering well-formatted email addresses into your app on the registration screen. You could write this functionality yourself, but validating email addresses is <a href="http://stackoverflow.com/questions/46155/validate-email-address-in-javascript">surprisingly tricky</a>, and it&#39;s a lot easier to use one of many npm modules that already provide this validation. For Groceries let&#39;s see how to add this <a href="https://www.npmjs.com/package/email-validator">email-validator module</a> to test for valid addresses.</p>
14361436
<h4 class="exercise-start">
@@ -1644,7 +1644,7 @@ <h4 class="exercise-start">
16441644
<b>Exercise</b>: ???
16451645
</h4>
16461646

1647-
<p>Open <code>app.main.ts</code> and replace the contents of the file with the following code:</p>
1647+
<p>Open <code>app/main.ts</code> and replace the contents of the file with the following code:</p>
16481648
<pre><code class="lang-TypeScript">import {nativeScriptBootstrap} from &quot;nativescript-angular/application&quot;;
16491649
import {AppComponent} from &quot;./app.component&quot;;
16501650
import {setStatusBarColors} from &quot;./utils/status-bar-util&quot;;

0 commit comments

Comments
 (0)