Thanks again, much to learn about shadow dom and LitElement. Happy enough though for my first week.
Can I suggest you include some downloadable examples in future articles. Stackblitz is awesome as well.
Often we just get pieces of Javascript which are great at explaining things, but when we try and run something like LitElement for the first time we get stuck with build tools and errors in the Browser until we get everything sorted out.
I hadn't found github.com/thepassle/create-lit-app when I started last Monday, which was a pity. I like Parcel.js which is what I'm using, but it took some time to get code that ran without errors.
Yeah, takes some time to get used to web components, but when everything clicks they're well worth it (especially LitElement).
As for downloadable examples, you can find the source code of this blog over here: github.com/thepassle/webcomponents...
(You can run it locally with python -m SimpleHTTPServer 8000, or any other method of serving)
Feel free to reach out if you have any more questions, you can find me on twitter, and usually on the polymer slack.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks again, much to learn about shadow dom and LitElement. Happy enough though for my first week.
Can I suggest you include some downloadable examples in future articles. Stackblitz is awesome as well.
Often we just get pieces of Javascript which are great at explaining things, but when we try and run something like LitElement for the first time we get stuck with build tools and errors in the Browser until we get everything sorted out.
I hadn't found github.com/thepassle/create-lit-app when I started last Monday, which was a pity. I like Parcel.js which is what I'm using, but it took some time to get code that ran without errors.
I'll look forward to your future articles.
PS. My wife is Dutch. Amsterdam is great. ;-)
Yeah, takes some time to get used to web components, but when everything clicks they're well worth it (especially LitElement).
As for downloadable examples, you can find the source code of this blog over here: github.com/thepassle/webcomponents...
(You can run it locally with
python -m SimpleHTTPServer 8000
, or any other method of serving)Feel free to reach out if you have any more questions, you can find me on twitter, and usually on the polymer slack.