Make it work with angular