code in angular js and bootstrap calling API