title: How to use forEach in ionic 4?
body: <p>I have an app in ionic v1 and I am upgrading into ionic 4. In my app have a forEach loop and I want to write in ionic 4.</p>
  
  <p>ionic 1--></p>
  
  <pre><code>angular.forEach(this.selectedQuestion.answers, function (ans) {
    if (ans.id == answerPassed.id) {
      this.selectedQuestion.selectedAns = answerPassed.id;
    } else {
      ans.value = false;
    }
  });
  </code></pre>
  
  <p>and showing this error </p>
  
  <blockquote>
    <p>Cannot find name 'angular'.ts(2304)</p>
  </blockquote>