NativeScript / tutorials

Project source to tutorials presented here: https://docs.nativescript.org/tutorial/
38 stars 30 forks source link

Error in populateFlicks fundtion of app/home/home-view-model.ts #4

Open alecgregory opened 2 years ago

alecgregory commented 2 years ago

In the definition of app/home/home-view-model.ts in the Home UI section there is an error in the populateFlicks function.

It is defined as

populateFlicks(): void {
    this._flicks = FlickService().getInstance().getFlicks();
  }

but should be

populateFlicks(): void {
    this._flicks = FlickService.getInstance().getFlicks();
  }

That is, FlickService should not be called.