Base solution for your next web application
Open Closed

A blank page in ASP.NET ZERO - Angular project #10159


User avatar
0
damijan created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version?
  • We have a 10.1.0 rc
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core 5

If issue related with ABP Framework

  • What is ABP Framework version?

If issue is about UI

  • Which theme are you using?
  • We used the metronic theme
  • What are the theme settings?
  • Default theme

Our issue is, how can we get the blank page (layout) without any theme in the solution which used metronic layout. The reason is, we used the puppeteer tool for printing pdf and we need a blank page without header or sidebar...etc.

Thanks.

Best regards, Damijan

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    There might be several ways for this. First, you can create a new layout and place it here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/app.component.html, for example;

    <empty-layout *ngIf="theme=='empty'"></empty-layout>
    

    Then, you can set theme to empty in the components you want.

    As a second alternative, if possible, you can use puppeteer tool to print only a specific part of the page.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)