single page angular app using mongo api