Server side angular like dependency injection