Skip to content

Adjust import statement so that it work as example #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions tutorial/plain.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ We will then use the `FlickModel` in our `FlickService` to return our flick data
```typescript
// app/services/flick.service.ts

import { FlickModel } from '../models'
import { FlickModel } from '~/models/flick.service'

export class FlickService {
private flicks: FlickModel[] = [
Expand Down Expand Up @@ -288,8 +288,8 @@ Since we have an array of flicks to display we can use NativeScript's [`ListView
// app/home/home-view-model.ts

import { Observable, ObservableArray } from '@nativescript/core'
import { FlickModel } from '../models'
import { FlickService } from '../services'
import { FlickModel } from '~/models/flick.model'
import { FlickService } from '~/services/flick.service'

// Add the contents of HomeViewModel class 👇
export class HomeViewModel extends Observable {
Expand Down Expand Up @@ -467,8 +467,8 @@ We will be using the `navigate` function from the `Frame` class to navigate from

// Update this 👇
import { Frame, Observable, ObservableArray, ItemEventData } from '@nativescript/core'
import { FlickModel } from '../models'
import { FlickService } from '../services'
import { FlickModel } from '~/models/flick.model'
import { FlickService } from '~/services/flick.service'

export class HomeViewModel extends Observable {
private _flicks: FlickModel[]
Expand Down Expand Up @@ -567,8 +567,8 @@ Next, let's access this property and get the flick information in our `DetailsVi
// app/details/details-view-model.ts

import { Observable } from '@nativescript/core'
import { FlickService } from '../services'
import { FlickModel } from '../models'
import { FlickService } from '~/services/flick.service'
import { FlickModel } from '~/models/flick.model'

// Add the contents of HomeViewModel class 👇
export class DetailsViewModel extends Observable {
Expand Down