<div class="container" ng-controller="TestQuestions">
<div id="row" ng-repeat="question in questions">
<div ng-repeat="answer in question.answer">
<p></p>
<h4 class="page-header">{{question.id}}. {{question.question}}</h4>
<p></p>
<button type="button" class="btn btn-info" value="Input Button">{{answer}}</button>
</div>
</div>
</div>
app.controller("TestQuestions", function($scope)
{
$scope.questions =
[
{
id: 1, question: "Sex?", "sex": {"m":"male", "f":"female"}
},
{
id: 2, question: "Level of your organization", answer: ["Personal", "Federal", "Privat"]
},
{
id: 3, question: "What is your name?", answer: ["Dima", "Roma", "Masha"]
},
{
id: 4, question: "Where do you live?", answer: ["Moscow", "London", "Minsk"]
}
];
}
);
Проблема в том, что данный цикл мне выводит в столбик:
2. Level of your organization
Personal
2. Level of your organization
Federal
2. Level of your organization
Privat
мне же нужно
2. Level of your organization
Personal Federal Privat