can someone tell me why i can't print out whole array Author which is in boardcards??
https://plnkr.co/edit/abZMTi7fSJ6sX691Ubm0?p=preview
<ul ng-repeat="card in assignedCards">
<div>
{{card.name}} {{card._id}}
</div>
<li ng-repeat="item in card.boardcards.Author">{{item}}</li>
</ul>
and here is object
:
$scope.assignedCards = {
"_id" : "59e36c44b89e5f2fb01d1310",
"name" : "1",
"boardcards" : {
"name" : "1",
"_id" : "59e36c48b89e5f2fb01d1312",
"Author" : [
"59df60fb6fad6224f4f9f22e",
"59df60fb6fad6224f4f9f22f",
"59df60fb6fad6224f4f9f22a"
]
}
}
EDIT
I use ur examples but still dont print out Authors, this Authors is array of strings maybe this is reason??
Its with model mongoose
lists : [{
list: String,
cards: [{
name: String,
Author: [{type : Schema.Types.ObjectId, ref: 'User'}]
}]
}],
Maybe here is problem??