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

Using ngx-highlightjs in stand-alone components #260

Closed
woutersteven opened this issue Jun 2, 2023 · 0 comments · Fixed by #261
Closed

Using ngx-highlightjs in stand-alone components #260

woutersteven opened this issue Jun 2, 2023 · 0 comments · Fixed by #261
Labels

Comments

@woutersteven
Copy link

Question about stand-alone components

With standalone components becoming the norm after Angular 14. A working example of how to import and use ngx-highlightjs with standalone components, what to import in app.module.ts or main.ts if it is bootstrapped there, and which configuration to put where.

As well as what to import in the component file itself. As well as how to use additional functionality such as the highlightAll() function in the JS library.

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] question

Versions

Angular 14, 15, 16, any OS.

Desired functionality

A working example of how to import and use ngx-highlightjs with standalone components, what to import in app.module.ts or main.ts if it is bootstrapped there, and what to import in the component file itself. As well as how to use additional functionality such as the highlightAll() function in the JS library.

@MurhafSousli MurhafSousli linked a pull request Jun 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants