Base solution for your next web application
Open Closed

"open in a new window" and page load / performance #11574


User avatar
0
sedulen created

Hello! It's been a very long time since I've posted (or answered any question). Apologies for that.

I did have a question I was hoping that someone could help me with I have a feature in my application UI to "open in a new window" for a document viewer. The new window that opens doesn't need the header / footer / notifications / signalr / or any of the platform UI wireframe. It truly just needs to be this 1 component.

I feel like I should know how to do this, but I'm just drawing a blank.
My angular chops aren't where they should be I guess.

Has anyone else had this need and had a solution? There are definitely some pieces that I'll need like Features, Permissions, Localized Text, etc... my "Stand Alone" component still inherits from AppComponentBase and right now I'm just using CSS to hide the header, footer, and to maximize the body of the page to be full window. In my browser's Network traffic, I still see a LOT of communications that I don't need, like websockets (signalr), Profile Picture, Notifications, Linked Users, etc, ...

Any recommendations on how to cut that out of the page load would be incredibly helpful

Thanks! -Brian


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

    Hi @sedulen

    I think easiest way would be; You can create a new layout (empty-layout for example) and render it in app.component.html similar to other layouts.

    Then, in app.component.ts, you can write a method which returns the layout. If the URL is one of your pages which requires empty layout, return empty, otherwise return current theme variable.

  • User Avatar
    0
    sedulen created

    Thank you very much @ismcagdas

    I will give this a try and let you know how it goes. -Brian

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @sedulen

    Let me know if you face any issues.