title: how to add partial page functionality using $http service in angular?
body: <p>I want to perform operation after successfully loaded the partial page using $http service in angular.</p>
  
  <p>The operation is to check the checkbox based on the scope value.</p>
  
  <p>Please anyone help me.</p>
  
  <p>Source Code here:
     This is actual code.</p>
  
  <pre><code>$http({
          url : './resources/staticPages/custom-object-filter.html',
          method : "GET"
      }).success(function(data, status) {         
              $scope.data = data;             
              jQuery("objectViewPartial").html($compile($scope.data)($scope));
              //console.log($scope.selected);
            if(angular.equals($scope.selected, "ShowActivatedObjects")) {
                   $("#ShowActivatedObjects").attr('checked','true');
            } else {
                  $("#ShowActivatedObjects").attr('checked','false');
            }                 
  
      }).error(function(data, status) {
              console.log("some error occured partial page");
      });
  </code></pre>
  
  <p>After getting success the below code is not working.</p>
  
  <pre><code>if(angular.equals($scope.selected, "ShowActivatedObjects")) {
                   $("#ShowActivatedObjects").attr('checked','true');
            } else {
                  $("#ShowActivatedObjects").attr('checked','false');
            }
  </code></pre>
  
  <p>I placed this code inside of success function.
  Please advice where i need to place this code.</p>