How can angular js display pdf? on the interface?

Nov.06,2021

this is a problem with browser controls.



controller
$http.get(url,{responseType: 'arraybuffer'})
                        .then(function (msg) {
                            var file = new Blob([msg.data], {type: 'application/pdf'});
                            var fileURL = URL.createObjectURL(file);
                            $scope.content=$sce.trustAsResourceUrl(fileURL);
                        });
 html
 <div class="modal-content" onloadstart="">
        <object ng-show="content" data="{{content}}" type="application/pdf" style="width: 100%;         height: 1000px;"></object>
    </div>                       
                        
                        
                        
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3735e-2c07c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3735e-2c07c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?