title: How to iterate through a property in object within an array in Angular?
body: <p>In AngularJs, I'm using ng-repeat option to display <code>questionText</code> property inside each object in an array.</p>
  
  <pre><code>[{
      "_id": "57fa2df95010362edb8ce504",
      "__v": 0,
      "answers": [],
      "options": [],
      "questionText": "what is your name?,What is your qualification?,Which city do you reside in?",
      "questionId": "H1Mb0jPA",
      "surveyId": "ryVj6Pf0"
  }, {
      "_id": "57fa441e5010362edb8ce507",
      "__v": 4,
      "answers": [],
      "options": ["BE", "MBA", "MS", "MTech"],
      "questionText": "What is your degree name?",
      "questionId": "BJPQ46vC",
      "surveyId": "ryVj6Pf0"
  }, {
      "_id": "57fa6fb65010362edb8ce509",
      "__v": 0,
      "answers": [],
      "options": [],
      "questionText": "Which city do you live in?",
      "questionId": "ryA2Jgd0",
      "surveyId": "ryVj6Pf0"
  }, {
      "_id": "57fa70125010362edb8ce50a",
      "__v": 0,
      "answers": [],
      "options": [],
      "questionText": "Have you tried this product?",
      "questionId": "BJqGlxOR",
      "surveyId": "ryVj6Pf0"
  }, {
      "_id": "57fa71085010362edb8ce50b",
      "__v": 0,
      "answers": [],
      "options": [],
      "questionText": "wassup?",
      "questionId": "H1WMbluC",
      "surveyId": "ryVj6Pf0"
  }]
  </code></pre>
  
  <p>The above is the array that I'm trying to go through.</p>
  
  <p>This is my HTML code for the <code>ng-repeat</code>.</p>
  
  <pre><code>&lt;div ng-controller="viewQuestionController as viewQuestions"&gt;
      &lt;div ng-repeat="questionText in viewQuestions.questions"&gt;
          &lt;h2&gt;{{viewQuestions.questions[0].questionText}}&lt;/h2&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It just iterates through the object in the first index 5 times. How do I make it iterate through each object?
  I tried <code>viewQuestions.questions.questionText</code> and <code>viewQuestions.questions[].questionText</code>
  Neither of it is working.</p>