Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Can not use type 'list' as variable type in ionic project

$
0
0

@armensanoyan wrote:

Hi! I am using angularfire2 in my ionic project. I need to get data in list to use querying-lists If I understood correct there is no lists in typescripts so writing

  public players: list<Player[]>;
  this.players = db.list<Player>('Players')

I get an error

[ts] Cannot find name ‘list’.

is there any way to use lists in ionic project ?
Here is my ionic info

@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.6
Cordova Platforms  : none
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.4
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>