Hello 
I have a problem with *bootstrap* *popover*. Can someone help?
I have json array data and show this data on popover by clicking buttons on 
page. It shows data very good but when i open another popover. it  change 
first open popover too they become same. basically it takes same json 
object.
Is there a way to pass parameter or filter it from button on page?

Thank you in advance 



Index.html
-----------
   <button uib-popover-template="dynamicPopover.templateUrl" 
    popover-title="{{dynamicPopover.title}}"  type="button" 
popover-placement="auto bottom-left"
    class="btn btn-default" ng-click="check(2)" >Popover  
   </button>

//--------


onepopup.html  layout
---------------------------------

<div ng-controller="showCtrl"  >

 <div ng-repeat="pop in comp " style="width:660px">  
  <div ng-if="pop.autoHeadCard == undefined ">  
     <div  style="width:640px;" ng-repeat="c in pop"> 
      <headLayout header-tile data="c.hCard"></headLayout>
     </div> 
  </div> 
 </div> 
</div> 
  
//-----------------

app.controller('showCtrl',  function($scope, $http, $filter, popupService) {

    $scope.dynamicPopover = {
          content: 'Hello, World!!!!!!',
          templateUrl: 'OnePopup.html',
          title: 'Title!!'
    };
  
    $scope.check = function( x ) {
   
      var arrayToReturn = []; 
       arrayToReturn.push($scope.compAll[x]); // take x object   
       $scope.comp = arrayToReturn;  // comp will be render in popup
 }
});

app.directive("headerTile", 
  function() {
    return {
      //restrict: "E",
      scope:{
        head: "=data"
      },
      replace:"true",

      templateUrl:"layout/HeaderCard.html",
      link :   function($scope,elem,attrs) {
        console.log("headerTile link load");
       // $scope.head.uniqueId = 
Math.floor(Math.random()*(90000-100+1)+100);
       }
    }; 
});

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to