title: Angular JS - angular.forEach - How to get key of the object?
body: <p>I have JSON object like below</p>
  
  <pre><code>{
      "txt_inc_Application": {
          "EWS": true,
          "EWindow": true
      },
      "txt_inc_IncidentType": {
          "Brand Damage": true,
          "Internal failure": true
      }
  }
  </code></pre>
  
  <p>And I am using angular.forEach to get the values</p>
  
  <pre><code>$scope.filterFormula=function() {
      angular.forEach($scope.filters, function(filterObj , filterIndex) {
          angular.forEach(filterObj, function(value , key) {
              console.log(value+"--"+key)
          })
      })
  }
  </code></pre>
  
  <p>How can i get "txt_inc_Application" and "txt_inc_IncidentType" in the loop?</p>
  
  <p>Also when call the angular function in html like below why it is getting executed twice?</p>
  
  <pre><code>{{filterFormula()}}
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/UzILR.png" alt="enter image description here"></p>