I have an ionic, typescript, AngularJS, Pohnegap developed app. One function that I have is to collect information male or female - I have made this static form
<ion-item>
<ion-label>Brand</ion-label>
<ion-select interface="popover">
<ion-option value="heineken">Heineken</ion-option>
<ion-option value="carlsberg">Carlsberg</ion-option>
</ion-select>
</ion-item>
That works and you can select either Female or Male, I like to make this dynamic by pulling the data to select from Firebase.
So I did this in my html file
<ion-item>
<ion-label stacked>Type of Trash</ion-label>
<ion-select [(ngModel)]="BrandsList (ionChange)="onSelectChange($event)">
<ion-option value="typeofbrand" *ngFor="let title of BrandsList"> {{title}}
</ion-option>
</ion-select>
</ion-item>
And in my .ts file I added this
BrandsList: FirebaseListObservable<any>;
...
this.BrandsList = db.list('/brands/');
I can not get the dynamic part to work, any ideas what I'm doing wrong.
See below for the image from my firebase database.
Appreciate any help, I can get.