You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Explain what modules are. Should be able to copy content almost verbatim from the current guide.</p>
942
942
<h3id="ui-elements">UI elements</h3>
943
-
<p>Explain that UI elements are actually NativeScript modules.</p>
943
+
<p>Explain that UI elements are actually NativeScript modules. Say that we’re going to make this app look nice—it’s a native app after all.</p>
944
944
<h4class="exercise-start">
945
945
<b>Exercise</b>: ???
946
946
</h4>
@@ -967,11 +967,35 @@ <h4 class="exercise-start">
967
967
</blockquote>
968
968
<divclass="exercise-end"></div>
969
969
970
-
<p>Explain what <code>OnInit</code> is. Explain how to look up {N} modules on the docs. Show images of what the app looks like now. Transition to talking about the list page.</p>
970
+
<p>Explain what <code>OnInit</code> is. Explain how to look up {N} modules on the docs. Show images of what the app looks like now.</p>
971
+
<p>Transition to animations</p>
972
+
<h3id="animations">Animations</h3>
973
+
<p>Talk about animations and the animation module.</p>
974
+
<h4class="exercise-start">
975
+
<b>Exercise</b>: ???
976
+
</h4>
977
+
978
+
<p>Open <code>app/pages/login/login.html</code> and add an <code>id</code> to the <code><StackLayout></code>:</p>
backgroundColor: this.isLoggingIn ? new Color("white") : new Color("#301217"),
989
+
duration: 200
990
+
});
991
+
}
992
+
</code></pre>
993
+
<divclass="exercise-end"></div>
994
+
995
+
<p>Talk about the color module and animation module. Have gifs. Mention that the hint color looks bad, but that we’ll address that later. Transition to talking about the list page.</p>
Copy file name to clipboardExpand all lines: src/chapters/chapter4.md
+43-3Lines changed: 43 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Explain what modules are. Should be able to copy content almost verbatim from th
4
4
5
5
### UI elements
6
6
7
-
Explain that UI elements are actually NativeScript modules.
7
+
Explain that UI elements are actually NativeScript modules. Say that we’re going to make this app look nice—it’s a native app after all.
8
8
9
9
<h4class="exercise-start">
10
10
<b>Exercise</b>: ???
@@ -43,12 +43,52 @@ ngOnInit() {
43
43
44
44
<divclass="exercise-end"></div>
45
45
46
-
Explain what `OnInit` is. Explain how to look up {N} modules on the docs. Show images of what the app looks like now. Transition to talking about the list page.
46
+
Explain what `OnInit` is. Explain how to look up {N} modules on the docs. Show images of what the app looks like now.
47
+
48
+
Transition to animations
49
+
50
+
### Animations
51
+
52
+
Talk about animations and the animation module.
53
+
54
+
<h4class="exercise-start">
55
+
<b>Exercise</b>: ???
56
+
</h4>
57
+
58
+
Open `app/pages/login/login.html` and add an `id` to the `<StackLayout>`:
59
+
60
+
```XML
61
+
<StackLayoutid="container">
62
+
```
63
+
64
+
Open `app/pages/login/login.component.ts` and add the following line at the top:
65
+
66
+
```TypeScript
67
+
import {Color} from"color";
68
+
```
69
+
70
+
Change the `toggleDisplay()` function in the same file to look like this:
Talk about the color module and animation module. Have gifs. Mention that the hint color looks bad, but that we’ll address that later. Transition to talking about the list page.
0 commit comments