Send and Get data from code editor like Plunker/StackBlitz embedded

前端 未结 1 410
心在旅途
心在旅途 2021-01-06 02:44

I have a website in .Net Core 2 and Angular 6. I am trying to create a code editor in angular or javaScript that will interact with part of the website, from parent to embed

相关标签:
1条回答
  • 2021-01-06 03:27

    Definitely better Stackblitz.

    Going by steps:

    1. You need to create an NPM package, rather than just git repository
    2. You need to setup an API with POST/PUT/PATCH resource, allowing external headers; however this is definitely something not secure and you'll need SSL activated
    3. As in step 2 but with GET

    Here an example.

    If you dont know how to embed, they have a documentation.

    0 讨论(0)
提交回复
热议问题