JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app ng-controller="jsonp_example">
    <button ng-click="doRequest()">Make JSONP request</button>
</div>

JavaScript

var stock_hack

function blaat(data) {
    console.log('hello');
    debugger;
    stock_hack = data;
}


function jsonp_example($scope, $http) {

    $scope.doRequest = function() {
        $http({
            method: "JSONP",
            params: {
                callback: "blaat"
            },
            url: "http://localhost:7234/api/person",
            isArray: true
        }).success(function(data, status) {
/*
                 *Never Goes HERE !!
                 */


        }).error(function(data, status) {

/*
                 * FREAKING HACK !!!!
                 */
            console.info("goes here")
            console.info(stock_hack)

        });
    };


}