title: How to add condition class in angularjs
body: <pre><code>if (url.indexOf('master/confirm-account') &gt; 0) {
      $scope.accountInfo = 'Confirm Account';
      $scope.page = 'confirm_account';
      $scope.activeTab = true;
  } else if (url.indexOf('master/master-profile') &gt; 0) {
      $scope.accountInfo = 'Confirm Account';
      $scope.page = 'master_profile';
      $scope.activeTab = true;
  } else {
      $scope.accountInfo = 'Create Account';
  }
  
  
  &lt;div ng-class = "{'process-step' : true, '({{page}}=='confirm_account') ? 'active-tab' : ' '}" &gt;
  </code></pre>
  
  <p>How can I add process-step and active-tab class
  Expected result if condition match then it become like that  </p>