QUESTION: How to export JS code from angular components?
Question
Hey, I am using grapesjs in my Angular app
I have a custom angular component (which is basically custom HTML created with angular) and I am trying to export content using grapesjs-plugin-export
Issue I am facing is that after export there is no JS code (which is initially inside angular component) that can do with html what ever I need.
I wonder if you can help me with this.
<img width="1025" alt="Screen Shot 2021-02-15 at 11 41 37 AM" src="https://user-images.githubusercontent.com/51407611/107929782-cf57c700-6f82-11eb-8c8f-049e32639b2f.png">Answers (1)
You can more about components with js here: https://grapesjs.com/docs/modules/Components-js.html#basic-scripts
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1888
[Question] Add custom html inside canvas
Hi there, I'm using grapes to export a custom json with all the information i need, instead of HTML and CSS. For doing that I'm parsing the...
Issue #2274
[QUESTION] How to load children of a readonly component?
I'm trying to mount a readonly component (draggable, droppable etc all set to false) and allow the user to edit child components inside. Fo...
Issue #2404
Question: how to observe children changes in component
Is there an easy way to subscribe/listen to changes in the components/children of my custom component type? Perhaps an event I can subscrib...
Issue #3587
QUESTION: How can I create grapesjs service for generating HTML from stored components?
Hello. Is there possibility to create grapesjs instance, without generating whole editor? I had created custom components with async data a...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.