2
如何在模板中引用將對象推送到firebase時提供的唯一ID。引用angularjs中生成的唯一id的名稱,firebase,angularfire
我有這樣的:
-JGfp5eaDEk2_oB_Wnkc
category_id: xxxx
content: xxx
created: xxx
title: xxx
-JGfqwXgeHSksqcmeGEv
category_id: xxx
content: xxx
created: xxx
title: xxx
我得到了使用:
var ref = firebaseRef('/types');
$scope.types = $firebase(ref);
現在我要創建我的模板的鏈接是這樣的:
<a href="update/JGfqwXgeHSksqcmeGEv">Update</a>
哇!我在尋找angularFire解決方案奮鬥,我沒想到的解決方案是不那麼遙遠 –
這工作,但我想知道如何實際得到一個slu instead – cameronroe