I have an web app while in some pages I need to make a printer to print the page but I have a side bar and the rest ist the page for a component, how it is possible to not print the sidebar only this component, I have used in TS this code.
print() {
window.print();
}
Html code starts from this one.
div class="container">
//Here I have all the HTML source
</div>