This small demo uses NGRX component-store to isolate component-specific state & logic into a utility service (LessonsCatalogComponentStore). Check out the related articles here: https://medium.com/javascript-in-plain-english/introducing-ngrx-component-store-part-1-67019dba0cb0.
Don't tell me about the outdated build/tools/whatever. I know ;-) I've just created this quickly using Stackblitz and that's what I got ^^.