Create one point service for all sub component. #3326
-
I want to create smart-table like functionality. I want to create one service which can share original data to all sub component used by web component. like search, filter, sort all can use same data(same service as we create singleton service in Angular) What is best way for this. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We have been developing a package that is similar in some ways to the notion of singleton service and dependency injection in Angular, that may address your needs. Check out the README for our |
Beta Was this translation helpful? Give feedback.
We have been developing a package that is similar in some ways to the notion of singleton service and dependency injection in Angular, that may address your needs. Check out the README for our
@lit-labs/context
package here: https://github.com/lit/lit/tree/main/packages/labs/context