Base solution for your next web application
Open Closed

Creating Empty Component without the Auto Loaded CSS and Javascript #8108


User avatar
0
ibtikar created

Dear Team

we are creating components to be hosted in the Angular Site and we managed the routes, security and component Loading correctly, but the issue is that we are getting alot of CSS and JS loaded on our page after the page finish loading, those styles and scripts are causing our design not to work.

our requirement is to create a clean components without any metronic css for specific routes.

please advise


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

    Hi @ibtikar

    Could you share a screenshot of loaded files (styles/scripts) ? You are probably talking about files loaded here https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/shared/helpers/DynamicResourcesHelper.ts. You can modify this file to load assets for specific routes.

  • User Avatar
    0
    ibtikar created

    i already modified the DynamicResourcesHelper.ts and stopped the loading of the metronic files, but still there is some styles added after the page load.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ibtikar

    Sorry for my late reply. Could you share names of those files ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.