Comments (5)
Also @dimi-nk , for why we have lazy loading built in I would recommend checking out https://www.youtube.com/watch?v=7vUs5yOuv-o&t=1021s . Just to explain a little bit about how it works. The tiny 5kb Stencil loader file registers what components might be used in your browser when it is loaded. Then, when and only when, that element hits the dom it loads the actual implementation of the component and renders. This means that if you use a component in your app, but its a few pages deep in the app, the JS for that component will not be loaded until the user goes to that page. This means that for the first view of your app, only the JS needed for components on that first page will be loaded. Hope this explains thing (:
from stencil-site.
Hey @dimi-nk , thanks for opening an issue with us. Have you seen these docs https://stenciljs.com/docs/angular-integration on how to use web components built with Stencil in an Angular project?
from stencil-site.
@jgw96 as far as I can see, @kensodemann did the commit right after I posted this question. Either it was a diabolical coincidence or he used my solution for the guide (they do look quite similar). Either way it's fine, but on the time when I asked this question there was nothing on the guide. I had a chat on the slack channel about this and finally understood it. The issue was more so that others don't get the same question as I did ;)
from stencil-site.
BTW, when visiting the site again, I couldn't see the angular-integration
section (even though it worked on the direct link posted before). I had to clear clear my cache to see it. Maybe check your cache busting strategy.
from stencil-site.
@dimi-nk Sorry about that, didn't realize the timing on this issue. That doc was actually up before but was called something different. Ill check the cache strategy. Thanks for using Stencil!
from stencil-site.
Related Issues (20)
- Clock example no longer works HOT 1
- Doc v3 : componentDidUnload missing HOT 3
- Docs: Missing space in code comment for https://stenciljs.com/docs/reactive-data HOT 1
- Redux docs page should be updated to use Redux Toolkit examples HOT 2
- The document home page has a bug HOT 2
- forceUpdate in documentation HOT 1
- Dependency Dashboard
- bug: Issue consuming components in an Angular 16 Project HOT 5
- bug: Documentation for array loops is wrong HOT 1
- `@Watch()` could have an example using a `@State()` in the documentation HOT 3
- Missing content in styleUrls docs HOT 2
- Docs: stencil-library reference HOT 1
- missing documentation for Angular 17's standalone mode HOT 1
- test bug HOT 1
- NextJS Integration Example with app router HOT 1
- testing automation - needs doc
- testing automation
- React Integration - the build doesn't include web component files HOT 4
- Docs should show @stencil/react-output-target is a dev dependency
- Youtube guide to use stencil with React and Angular doesn't work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil-site.