I am searching for a way to utilize a Firebase Object name as a parameter for the ui-router within an ng-repeat
.
It is important to note that fetching the favorite property as a Firebase array is not feasible.
STRUCTURE OF THE OBJECT:
https://i.sstatic.net/63pot.png
Is it viable to use the object name as a property inside an ng-repeat
? By object name, I am referring to something like -K7YRDY2SP-kTN6...
The goal is to achieve something similar to this:
CODE:
<div ng-repeat="fav in favs = (current.favorites)"
ui-sref="app.show({'itemId':OBJECT_NAME})">
Name: {{fav.name}}
</div>