Issue while retrieving .handlebar file

Issue while retrieving .handlebar file
0

#1

Hello,
I have written handlebar file. but while retrieving the file I am getting some extra content.
here is my .handlebar file.


css as:
.list-group{
margin-top: 15px;
text-align: center;
}
.list-group-item {
position: relative;
display: block;
padding: 15px 15px;
background-color: #fff;
width:70%;
border: 1px solid #ddd;
}

I am getting polls data from mongoose as
{ “_id” : ObjectId(“58b735f02de1441e78990841”), “user” : ObjectId(“58b5fc22334075309c8c9489”), “pollName” : “cricketer”, “pollOptionOne” : “rahul”, “pollOptionTwo” : “jay”, “votesFirst” : 0, “votesSecond” : 0, “__v” : 0 }
{ “_id” : ObjectId(“58b74f01cef45207dc316f4d”), “user” : ObjectId(“58b5fc22334075309c8c9489”), “pollName” : “city”, “pollOptionOne” : “newyork”, “pollOptionTwo” : “sanfransisco”, “votesFirst” : 0, “votesSecond” : 0, “__v” : 0 }

and output as

Ideally, it should show the list with cricketer and city.
Please suggest me where I did wrong.


#2

I don’t think the inner “this” loop is necessary.


#3

Thank you so much. It worked :slight_smile: