Simple property injection in typescript/javascript