Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code is not rendered in SSR #282

Open
hartmannm opened this issue May 10, 2024 · 1 comment
Open

Code is not rendered in SSR #282

hartmannm opened this issue May 10, 2024 · 1 comment

Comments

@hartmannm
Copy link

Reproduction

Steps to reproduce:

  1. ng new --ssr
  2. Importing Core Library and Languages as it is described here
  3. Create new component and add pre tag
    <pre > <code [highlight]="enableServerSideRenderingCode" language="xml"></code> </pre>
  4. Execute npm run build
  5. Check dist/<project_name>/browser/<page_name>/index.html
  6. Code block is not rendered

Expected Behavior

Highlighting is working for SSR

Actual Behavior

Code tags are empty

Environment

  • Angular: 17.0.0
  • ngx-highlightjs: 11.0.0-beta.1
  • Browser(s): n/a
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS
@MurhafSousli
Copy link
Owner

MurhafSousli commented May 12, 2024

The demo app is running in SSR mode, The code is highlighted in runtime in the browser not on the server

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

No branches or pull requests

2 participants