how to get only selected list of data in firebase with angular

Suppose I have two branch in firebase (e.g :- Branch A and Branch B).

Branch A :
 branchA1 :
   field1 : "Hello"
   feild2 : "Hello"
branchA2 :
   field1 : "Hello"
   feild2 : "Hello"
branchA3 :
   field1 : "Hello"
   feild2 : "Hello"
branchA4 :
   field1 : "Hello"
   feild2 : "Hello"
branchA5 :
   field1 : "Hello"
   feild2 : "Hello" 



Branch B :
 brachB1 :
   randomID1:
     Id : branchA5
   randomID2:
     Id : branchA1
   randomID3:
     Id : branchA2
 brachB2 :
   randomID1:
     Id : branchA3
   randomID2:
     Id : branchA4

So suppose user selected id is branchB2 then how can I select only branchA3 and branchA4 form branchA using angular js .



Read more here: https://stackoverflow.com/questions/68480135/how-to-get-only-selected-list-of-data-in-firebase-with-angular

Content Attribution

This content was originally published by Abbas Tambawala at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: