worked version with angular moduling