updated angular api