Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Angular Component styles not linked properly during preboot (_ngcontent-serverApp-c16 vs _ngcontent-sc16) #115

Description

@ohabash

Note: for support questions, please use the Universal Slack Channcel or https://gitter.im/angular/universal

  • I'm submitting a ...
    bug report

  • Which parts of preboot are affected by this issue?
    client side

  • What is the current behavior?
    During preboot the html attributes do not match the inlined component css. example:

  • Before preboot complete

css: copy[_ngcontent-serverApp-c16]
html: <div _ngcontent-sc16="" class="copy">
  • After app loads (preboot complete)
css: copy[_ngcontent-serverApp-c16]
html: <div _ngcontent-serverapp-c16="" class="copy">
  • app.module.ts
imports: [
   ...
   BrowserModule.withServerTransition({ appId: 'ZaynTekApp' }),
   PrebootModule.withConfig({ appRoot: 'app-root', replay: false  }),
   ...
]
  • Please tell us about your environment:
  • Browser: chrome Version 84.0.4147.105 (all)
  • Language: TS 3.96
  • OS: MAC (all)
  • Platform: nodejs
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions