By using push() you generate a new node with an id that is automatically generated by Firebase (-Lz6G...).
If you want to write a node with an id that you generate (0, 1, 2 in your case) you will have to use the set() method.
The problem you may encounter in your case (since you create objects like {bItem: this.bucketListItem, isCompleted: false} one by one) is that you don't know what is the last id present in the database. So you will have to query the database to find the value of the last id and increment it (preferably through a transaction).
Or, if you are able to create the objects in one batch using an array of objects, as follows, the node ids will follow the 0, 1, 2 sequence.
You can try the following:
var bucketListItems = [
{ bItem: 'Item1', isCompleted: false },
{ bItem: 'Item2', isCompleted: false }
];
const bucketRef = this.angularFireDb.list('/bucketList/');
bucketRef.set(uid, bucketListItems);
bucketListItemsobject please.{bItem: this.bucketListItem, isCompleted: false}and this.bucketListItem is dynamic i.e. comes from user{bItem: this.bucketListItem, isCompleted: false}. Since you push an object calledbucketListItemswith an s I thought maybe you push a list of objects (even if the ids of each object does seem to come from an individual push).0 1 2 ....is this possible ? @RenaudTarnec