Angular like dependency injection