<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: JSON angularjs in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/json-angularjs/qaa-p/13845485#M4876328</link>
    <description>&lt;P&gt;found my sample code took it from a tutorial &lt;A href="https://docs.angularjs.org/tutorial"&gt;https://docs.angularjs.org/tutorial&lt;/A&gt;
I stopped at Step 6 replaced the $http.get with my own IP
just a note my nginx is using port 8086 and my service is 8084 using nginx proxy to make same location&lt;/P&gt;
&lt;P&gt;phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {
  $http.get('&lt;A href="http://88.88.88.88:8086/tmws/vb_wol'"&gt;http://88.88.88.88:8086/tmws/vb_wol'&lt;/A&gt;).success(function(data) {
    $scope.phones = data;
  });&lt;/P&gt;
&lt;P&gt;$scope.orderProp = 'age';
});&lt;/P&gt;
&lt;P&gt;Have a proof of concept ... nice, I fly out tomorrow&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2014 12:12:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-01T12:12:40Z</dc:date>
    <item>
      <title>JSON angularjs</title>
      <link>https://community.sap.com/t5/technology-q-a/json-angularjs/qaq-p/13845484</link>
      <description>&lt;P&gt;Trying to build a angularjs single page web application
using SQL Anywhere 16 creating web service.
using nginx as a web server.&lt;/P&gt;
&lt;P&gt;my problem is in the web service ... I cannot quite get the header created correctly for it to be used by the application.
I create two application exactly the same code the difference is one line one pulls from a outside web service that works and mine pulls from Sybase that does not work.&lt;/P&gt;
&lt;P&gt;the code that is different&lt;/P&gt;
&lt;P&gt;angular.module('myApp.services', ['ngResource'])
  .factory('AngularIssues', function($resource){&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;return $resource('https://api.github.com/repos/angular/angular.js/issues', {})


&lt;P&gt;//      return $resource('&lt;A href="http://[my" target="_blank"&gt;http://[my&lt;/A&gt; ip]:8086/tmws/vb_wot', {})&lt;/P&gt;
&lt;P&gt;})
  .value('version', '0.1');&lt;/P&gt;
&lt;P&gt;i changed the nginx to pull my web service through as proxy eliminating the Same origin Policy however that seems to be the inaccurate error that is showing in the console.&lt;/P&gt;
&lt;P&gt;when I run this in the browser inspecting the network I get the line of vb_wot Method OPTIONS
I set the Content-Type:application/json; charset=utf-8&lt;/P&gt;
&lt;P&gt;I need a proof of concept for a meeting I'm going to.
Does anyone has a sample that works with angularjs?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-angularjs/qaq-p/13845484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-30T16:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON angularjs</title>
      <link>https://community.sap.com/t5/technology-q-a/json-angularjs/qaa-p/13845485#M4876328</link>
      <description>&lt;P&gt;found my sample code took it from a tutorial &lt;A href="https://docs.angularjs.org/tutorial"&gt;https://docs.angularjs.org/tutorial&lt;/A&gt;
I stopped at Step 6 replaced the $http.get with my own IP
just a note my nginx is using port 8086 and my service is 8084 using nginx proxy to make same location&lt;/P&gt;
&lt;P&gt;phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {
  $http.get('&lt;A href="http://88.88.88.88:8086/tmws/vb_wol'"&gt;http://88.88.88.88:8086/tmws/vb_wol'&lt;/A&gt;).success(function(data) {
    $scope.phones = data;
  });&lt;/P&gt;
&lt;P&gt;$scope.orderProp = 'age';
});&lt;/P&gt;
&lt;P&gt;Have a proof of concept ... nice, I fly out tomorrow&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/json-angularjs/qaa-p/13845485#M4876328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-01T12:12:40Z</dc:date>
    </item>
  </channel>
</rss>

