i'm new on webcomponent, i read some guides, but i really can't figured out how to build a simple webcomponent, on latest chrome 56 (so, no polyfill needed). I want to use it without external libraries (no polymer, etc). The only simple example i found is this (https://github.com/webcomponents/hello-world-element) but i don't understand why it needs a server (polyserve) to see the index.html working. It's only client-side, like Angular2. Thanks
webcomponent basic (no polymer, etc..): simple example 'hello world', why does it need a server?
335 views Asked by Johannes At
1
There are 1 answers
Related Questions in WEB-COMPONENT
- how can i Integrate React Web Component with Angular and Passing Props
- JS CustomElements - Self 'registration' upon first instantiation
- How can I make jest support importing HTML file inside TS files?
- How to style a custom HTML element based on child node selector(s), using a shadow DOM attached stylesheet?
- CustomElementRegistry repeat registration error
- Styling swiper web component navigation buttons
- Why cant I select all selected option in IComboBox from @fluentui/react
- Getting Cannot read property 'polyfillWrapFlushCallback' of undefined
- How to render a Lit element component in a Nuxt 3 project?
- Can you have an `<li>` in a autonomous custom element with the parent `<ul>` not in the same ShadowDOM?
- How to manage routes and templates in a website?
- Why always Web component(Custom component)'s shadow-root copy own root's style
- Can I selectively stop a ::part pseudo selector from overriding shadow dom css
- Why isn't my custom element being garbage-collected?
- Can Vite serve up-to-date compiled source at a URL?
Related Questions in CUSTOM-ELEMENT
- Change custom element content before and after attaching to the DOM
- How to listen for LightDOM Label "FOR=" events via ShadowDOM Custom Element
- JS CustomElements - Self 'registration' upon first instantiation
- How to style a custom HTML element based on child node selector(s), using a shadow DOM attached stylesheet?
- FireFox events do not bubble or propagate from shadow to light DOM
- How to make Font CSS work in Custom Element
- Is an inserted element’s connectedCallback guaranteed to run before the callback of a MutationObserver observing it?
- FireFox/Safari Event target vs current target in shadow DOM
- Cutom Elements: Can't extend from button Illegal constructor
- Can't find CSS selector to style Shadow DOM delegated focus
- How to provide callbacks to a Custom Element
- Configure HTML element to behave like text character
- How to use a web component(created in Angular 17) in HTML external project
- Styling Custom Element ShadowDOM With Bootstrap Does't Work
- Custom web Component forced render
Related Questions in HTML5-IMPORT
- Images created using `document.currentScript.ownerDocument.createElement` (from within <link> imported HTML) never load
- HTML Import: How to obtain correct document object within imported html?
- HTML5 Import with dynamically created link
- webcomponent basic (no polymer, etc..): simple example 'hello world', why does it need a server?
- Vanilla web-component structure
- How can I make HTML5 imports work properly on Firefox and IE11
- Saving on localStorage from an HTML Imports file
- onload of import template does not have object instance in `this` - where is it?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It needs a server because it makes use of
<link rel="import">HTML element which requires a server for security reasons.This
<link>loads external resources that could be malicious, much more than a simple CCS stylesheet loaded with<link rel="stylesheet">.Here is a simple example that doesn't need a server to run: