Hi mahesh213,
Call the window.close() after the window.print() method.
Use the below code.
$scope.printToCart = function (dvContainer1) {
var innerContents = document.getElementById(dvContainer1).innerHTML;
var popupWinindow = window.open('', '_blank', 'width=600,height=700,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,titlebar=no');
popupWinindow.document.open();
popupWinindow.document.write('<html><head><link rel="stylesheet" type="text/css" href=/Content/pdf.css?13062019 /></head><body onload="window.print();window.close();">' + innerContents + '</html>');
popupWinindow.document.close();
}