MurhafSousli / ngx-highlightjs

Angular syntax highlighting module

Home Page:https://ngx-highlight.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration to monorepo LIB module and component encapsulation

AndyKIron opened this issue · comments

Bug Report or Feature Request (mark with an x)

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

OS and Version?

MacOS Catalina

Versions

Angular CLI: 10.1.7
Node: 12.11.0
OS: darwin x64

Angular: 10.2.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace:

Package Version

@angular-devkit/architect 0.1001.7
@angular-devkit/build-angular 0.1001.7
@angular-devkit/core 10.1.7
@angular-devkit/schematics 10.1.7
@angular/cli 10.1.7
@schematics/angular 10.1.7
@schematics/update 0.1001.7
rxjs 6.5.5
typescript 4.0.5

Repro steps

N/A

The log given by the failure

N/A

Desired functionality

Just a couple questions:

  1. I am using ngx-highlightjs in monorepo (https://nx.dev) where has application and lib for components have used in app. Do I need Import HighlightModule in app.module or it possible to do also in lib module without changes in app.module?

  2. Component where I will use ngx-highlightjs must have encapsulation: ViewEncapsulation.None, if I want to add some SCSS to it?

Mention any other details that might be useful

N/A

Sorry. I have found the answers.