Is it acceptable to use Elf for Component State in Angular? #455
-
Forgive me if it's a silly question, I am new 😭 I was considering doing something like this:
And using it in my Component like this:
I assumed it was OK but I ended up doing a little digging and I ran into this comment Note that destroy only removes the store from the global stores' repo; it doesn't destroy the actual instance. I don't actually know for sure in depth, but due to Either that or I am abusing Elf entirely 😁 PS Thanks for Elf! It's actually pretty beautiful to work with in my limited tinkering so far. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the way. You're creating the store inside the class so it's OK. |
Beta Was this translation helpful? Give feedback.
This is the way. You're creating the store inside the class so it's OK.