ngxs / store

🚀 NGXS - State Management for Angular
http://ngxs.io
MIT License
3.53k stars 400 forks source link

Interfaces for Livecycle Events #272

Closed Silthus closed 6 years ago

Silthus commented 6 years ago

I think it would be good to create a simple Interface that needs to be implemented on the state class for the livecycle events.

Implementing the interface would be more intuitive than guessing the signature of the livecycle method.

implements NgxsOnInit

amcdnl commented 6 years ago

Yup good call.

deebloo commented 6 years ago

@amcdnl could we also change onInit to ngxOnInit?

amcdnl commented 6 years ago

@deebloo im fine w/ that.