Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Issue with window.print() breaking tabs

$
0
0

Example

The below code causes Ionic Tabs to stop working... Can not see the reason....

<a href="#" class="fa fa-print fa-2x" ng-click="print('skills-print')"></a>

    $scope.print = function(section) {
        var printContents = document.getElementById(section).innerHTML;
        var originalContents = document.body.innerHTML;
        document.body.innerHTML = printContents;
        window.print();
        document.body.innerHTML = originalContents;
    }

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>