title: change background color with angularjs
body: <p>Continue discovering angularjs and stucked at changing colors on object, if it true - for ex. green, if false another color. I've tried to realized it but it shows me to all rendered data one color:</p>
  
  <pre><code>rssFeedService.getFeed().then(function (results) {
      $scope.feed = results.data;
  
      $scope.feed.forEach(function (checkitem){
          if (!checkitem.isRead) {
              $scope.read = {
                  "color": "white",
                  "background-color": "coral"
              }
          } else {
              $scope.read = {
                  "color": "white",
                  "background-color": "green"
              }
          }
      });
  
  }, function (error) {
      //alert(error.data.message);
  });
  </code></pre>
  
  <p>Here i'm getting data and with loop i'm set the color.</p>
  
  <pre><code>&lt;div class="col-md-12" ng-repeat="q in feed"&gt;
  
      &lt;a href="{{q.link}}"&gt;
          &lt;h1 ng-click="isReadClick(q.id)" ng-style="read"&gt; {{q.title}}&lt;/h1&gt;
      &lt;/a&gt;
  
      &lt;h4&gt;{{q.body}}&lt;/h4&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I Suppose that this happens because I'm using ng-style and should use ng-class for set static color. </p>