-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add Inline Source Support #11
Comments
just swimming by here! i tried to use the <wc-monaco-editor language="javascript" value="let foo = 123">
</wc-monaco-editor> was this the intended use? is inline source support something different? |
That doesn't work because 'value' is a property not an HTML attribute. It's only assignable via JavaScript. To answer your question. Yes, the inline source feature is intended for declaratively defining the initial value of the editor declaratively in HTML. Generally, I've found 4 useful strategies for setting complex data on a standard web component.
I just need to implement inline source support for this element. It makes a lot more sense for general use. Fetch works great but adds a lot of overhead, especially on pages with many instances of this component. |
ok think i got it. thank you! |
Add the ability to load the source from an inline
<script>
tagThe text was updated successfully, but these errors were encountered: