I\'m looking for a solution for a bit of an odd situation. Let\'s take a quick look at the angular2-seed project so I can better explain: https://github.com/mgechev/angular2-see
A javascript meta-framework could work for you. Here this interesting project It takes inspiration from React component lifecycles by applying lifecycles to entire applications.
Some features:
I hope it helps you to go in the right direction.