Fix the passing of angular modules to shared generator