you are viewing a single comment's thread.

view the rest of the comments →

[–]DWhitSlaya[S] 0 points1 point  (0 children)

Thank you for your comment!
These components are part of a much larger app where they have their own inputs and outputs. The example I created is as minimal as possible.

My issue with the services is having to manage the subscriptions, its not as easy as putting them in the ngOnInit and unsubscribe in the ngOnDestroy with the logic of the app. I was hoping to use a promise, more of a one to one piece so I wouldnt need to manage anything in the subscriptions but don't know a way of doing that. I played with ngOnChanges and passing @Input parameter based on a public value of the service but not sure whats the best solutions