Hola buen dia tengo  un problema con una modal que adentro de la modal     
tiene un checkboxs que manda llamar a  documentos en  pdf  el problema que 
no me funciona  no se si el botton o  en que estare mal  
<div class="inmodal">
    <div class="modal-header">
        <i class="fa fa-laptop modal-icon"></i>
        <h4 class="modal-title">PDF file</h4>
        <small class="font-bold"></small>
    </div>
<div class="modal-body">
  <div class="checkbox checkbox-primary"><input id="checkbox2" 
type="checkbox" ng-model="getCG1212"><label 
for="checkbox2">CG-1212</label></div>
       <div class="checkbox checkbox-primary"><input id="checkbox2" 
type="checkbox" ng-model="getZR7878"><label 
for="checkbox2">ZR-7878</label></div>
       <div class="checkbox checkbox-primary"><input id="checkbox2" 
type="checkbox" ng-model="getCZR7575Alt"><label 
for="checkbox2">CZR-7575Alt</label></div>
       <div class="checkbox checkbox-primary"><input id="checkbox2" 
type="checkbox" ng-model="getCF7501"><label 
for="checkbox2">CF-7501</label></div>
            
       </div>                          
    
    <div class="modal-footer">
        <button type="button" class="btn btn-white" 
ng-click="cancel()">Close</button>
        <button type="submit" class="btn btn-primary" 
ng-click="ok()">RUN</button>
    </div>
</div>  
  

Controller
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
$scope.getCG1212 = function ( oid ){
        $scope.Oid = oid;

        $http({
            method: 'GET',
            url: apiurl + "getCG1212?Oid="+$scope.Oid,
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            responseType:'arraybuffer'
        }).success(function(response){
            var file = new Blob( [response], {type: 'application/pdf'} );
            var fileURL = URL.createObjectURL(file);
            window.open(fileURL);
        });
 };
 
 $scope.getZR7878 = function ( oid ){
        $scope.Oid = oid;

        $http({
            method: 'GET',
            url: apiurl + "getZR7878?Oid="+$scope.Oid,
            headers: {'Content-Type': 'application/x-www-form-urlencoded'},
            responseType:'arraybuffer'
        }).success(function(response){
            var file = new Blob( [response], {type: 'application/pdf'} );
            var fileURL = URL.createObjectURL(file);
            window.open(fileURL);
        });
 };

-- 
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