title: Notable to link javascript object and angularjs in controllers
body: <p>I am trying to develop a mobile application in which i am getting JSON object using javascript page main.js,now I am trying to print the object using angualjs Controllers,but could not find any way.CAn anyone help me out on this?</p>
  
  <p>function written in Main.js`</p>
  
  <pre><code>function getViewColumnsSuccess(result){ 
   var httpStatusCode = result.status;
      if (200 == httpStatusCode) { 
       var invocationResult = result.invocationResult;
    var isSuccessful = invocationResult.isSuccessful;
     if (true == isSuccessful) {
     var result = invocationResult.text; //var FinalCol=reult;
         } else {
      alert("Error. httpStatusCode=" + httpStatusCode); } } }
  </code></pre>
  
  <p>The var result I want to get in DemoController in another page </p>
  
  <pre><code>app.controller('tableCtrlNew', function($scope,$http) { });
  </code></pre>