hello-world-element | Web Component example using VanillaJS | Web Framework library
kandi X-RAY | hello-world-element Summary
kandi X-RAY | hello-world-element Summary
Web Component example using VanillaJS
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of hello-world-element
hello-world-element Key Features
hello-world-element Examples and Code Snippets
Community Discussions
Trending Discussions on hello-world-element
QUESTION
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
...ANSWER
Answered 2017-Feb-06 at 16:40It needs a server because it makes use of HTML element which requires a server for security reasons.
This loads external resources that could be malicious, much more than a simple CCS stylesheet loaded with
.
Here is a simple example that doesn't need a server to run:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install hello-world-element
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page