Skip to content

Commit 1fea0c0

Browse files
authored
fix(tutorials): image paths and HTML comment syntax (#66)
1 parent 9a6acbf commit 1fea0c0

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

tutorial/angular.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class FlickService {
219219
id: 1,
220220
genre: 'Musical',
221221
title: 'Book of Mormon',
222-
image: '/assets/bookofmormon.png',
222+
image: '~/assets/bookofmormon.png',
223223
url: 'https://nativescript.org/images/ngconf/book-of-mormon.mov',
224224
description: `A satirical examination of the beliefs and practices of The Church of Jesus Christ of Latter-day Saints.`,
225225
details: [
@@ -251,7 +251,7 @@ export class FlickService {
251251
id: 2,
252252
genre: 'Musical',
253253
title: 'Beetlejuice',
254-
image: '/assets/beetlejuicemusical.png',
254+
image: '~/assets/beetlejuicemusical.png',
255255
url: 'https://nativescript.org/images/ngconf/beetlejuice.mov',
256256
description: `A deceased couple looks for help from a devious bio-exorcist to handle their haunted house.`,
257257
details: [
@@ -281,7 +281,7 @@ export class FlickService {
281281
id: 3,
282282
genre: 'Musical',
283283
title: 'Anastasia',
284-
image: '/assets/anastasia.png',
284+
image: '~/assets/anastasia.png',
285285
url: 'https://nativescript.org/images/ngconf/anastasia.mov',
286286
description: `The legend of Grand Duchess Anastasia Nikolaevna of Russia.`,
287287
details: [

tutorial/plain.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export class FlickService {
161161
id: 1,
162162
genre: 'Musical',
163163
title: 'Book of Mormon',
164-
image: '/assets/bookofmormon.png',
164+
image: '~/assets/bookofmormon.png',
165165
url: 'https://nativescript.org/images/ngconf/book-of-mormon.mov',
166166
description: `A satirical examination of the beliefs and practices of The Church of Jesus Christ of Latter-day Saints.`,
167167
details: [
@@ -193,7 +193,7 @@ export class FlickService {
193193
id: 2,
194194
genre: 'Musical',
195195
title: 'Beetlejuice',
196-
image: '/assets/beetlejuicemusical.png',
196+
image: '~/assets/beetlejuicemusical.png',
197197
url: 'https://nativescript.org/images/ngconf/beetlejuice.mov',
198198
description: `A deceased couple looks for help from a devious bio-exorcist to handle their haunted house.`,
199199
details: [
@@ -223,7 +223,7 @@ export class FlickService {
223223
id: 3,
224224
genre: 'Musical',
225225
title: 'Anastasia',
226-
image: '/assets/anastasia.png',
226+
image: '~/assets/anastasia.png',
227227
url: 'https://nativescript.org/images/ngconf/anastasia.mov',
228228
description: `The legend of Grand Duchess Anastasia Nikolaevna of Russia.`,
229229
details: [

tutorial/react.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class _FlickService {
168168
id: 1,
169169
genre: 'Musical',
170170
title: 'Book of Mormon',
171-
image: '/assets/bookofmormon.png',
171+
image: '~/assets/bookofmormon.png',
172172
url: 'https://nativescript.org/images/ngconf/book-of-mormon.mov',
173173
description: `A satirical examination of the beliefs and practices of The Church of Jesus Christ of Latter-day Saints.`,
174174
details: [
@@ -200,7 +200,7 @@ class _FlickService {
200200
id: 2,
201201
genre: 'Musical',
202202
title: 'Beetlejuice',
203-
image: '/assets/beetlejuicemusical.png',
203+
image: '~/assets/beetlejuicemusical.png',
204204
url: 'https://nativescript.org/images/ngconf/beetlejuice.mov',
205205
description: `A deceased couple looks for help from a devious bio-exorcist to handle their haunted house.`,
206206
details: [
@@ -230,7 +230,7 @@ class _FlickService {
230230
id: 3,
231231
genre: 'Musical',
232232
title: 'Anastasia',
233-
image: '/assets/anastasia.png',
233+
image: '~/assets/anastasia.png',
234234
url: 'https://nativescript.org/images/ngconf/anastasia.mov',
235235
description: `The legend of Grand Duchess Anastasia Nikolaevna of Russia.`,
236236
details: [

tutorial/svelte.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class FlickService {
137137
id: 1,
138138
genre: 'Musical',
139139
title: 'Book of Mormon',
140-
image: '/assets/bookofmormon.png',
140+
image: '~/assets/bookofmormon.png',
141141
url: 'https://nativescript.org/images/ngconf/book-of-mormon.mov',
142142
description: `A satirical examination of the beliefs and practices of The Church of Jesus Christ of Latter-day Saints.`,
143143
details: [
@@ -169,7 +169,7 @@ export class FlickService {
169169
id: 2,
170170
genre: 'Musical',
171171
title: 'Beetlejuice',
172-
image: '/assets/beetlejuicemusical.png',
172+
image: '~/assets/beetlejuicemusical.png',
173173
url: 'https://nativescript.org/images/ngconf/beetlejuice.mov',
174174
description: `A deceased couple looks for help from a devious bio-exorcist to handle their haunted house.`,
175175
details: [
@@ -199,7 +199,7 @@ export class FlickService {
199199
id: 3,
200200
genre: 'Musical',
201201
title: 'Anastasia',
202-
image: '/assets/anastasia.png',
202+
image: '~/assets/anastasia.png',
203203
url: 'https://nativescript.org/images/ngconf/anastasia.mov',
204204
description: `The legend of Grand Duchess Anastasia Nikolaevna of Russia.`,
205205
details: [
@@ -256,7 +256,7 @@ The home page can be divided into two main parts, the action bar with the title
256256
Since we have an array of flicks to display we can use NativeScript's [`ListView`](https://docs.nativescript.org/ui-and-styling.html#listview) component. `ListView` is a NativeScript UI component that efficiently renders items in a vertical or horizontal scrolling list. Let's first create a variable called flick in our home component that we are going to use as our `ListView`'s data source. Open `Home.svelte` and add the following:
257257

258258
```html{9}
259-
// app/pages/Home.svelte
259+
<!-- app/pages/Home.svelte -->
260260
261261
<page>
262262
<actionBar title="NativeFlix" />

tutorial/vue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default class FlickService {
148148
id: 1,
149149
genre: 'Musical',
150150
title: 'Book of Mormon',
151-
image: '/assets/bookofmormon.png',
151+
image: '~/assets/bookofmormon.png',
152152
url: 'https://nativescript.org/images/ngconf/book-of-mormon.mov',
153153
description: `A satirical examination of the beliefs and practices of The Church of Jesus Christ of Latter-day Saints.`,
154154
details: [
@@ -180,7 +180,7 @@ export default class FlickService {
180180
id: 2,
181181
genre: 'Musical',
182182
title: 'Beetlejuice',
183-
image: '/assets/beetlejuicemusical.png',
183+
image: '~/assets/beetlejuicemusical.png',
184184
url: 'https://nativescript.org/images/ngconf/beetlejuice.mov',
185185
description: `A deceased couple looks for help from a devious bio-exorcist to handle their haunted house.`,
186186
details: [
@@ -210,7 +210,7 @@ export default class FlickService {
210210
id: 3,
211211
genre: 'Musical',
212212
title: 'Anastasia',
213-
image: '/assets/anastasia.png',
213+
image: '~/assets/anastasia.png',
214214
url: 'https://nativescript.org/images/ngconf/anastasia.mov',
215215
description: `The legend of Grand Duchess Anastasia Nikolaevna of Russia.`,
216216
details: [

0 commit comments

Comments
 (0)