You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ngx-markdown 14.0.0 with mermaid plugin.
If I add "node_modules/mermaid/dist/mermaid.min.js" in scripts of angular.json everything works well, but I would like to load that big file only when my custom angular component loads.
For that I use in the component:
import "node_modules/mermaid/dist/mermaid.min";
but I get the error:
[ngx-markdown] When using the mermaidattribute you *have to* include Mermaid files toangular.json or use imports. See README for more information
The question is, how could I load mermaid script from the component and making ngx-markdown works?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
I am using ngx-markdown 14.0.0 with mermaid plugin.
If I add "node_modules/mermaid/dist/mermaid.min.js" in scripts of angular.json everything works well, but I would like to load that big file only when my custom angular component loads.
For that I use in the component:
import "node_modules/mermaid/dist/mermaid.min";
but I get the error:
[ngx-markdown] When using the
mermaidattribute you *have to* include Mermaid files to
angular.jsonor use imports. See README for more information
The question is, how could I load mermaid script from the component and making ngx-markdown works?
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: