Get response data from angularjs