By default the list-of-books template is setup to work with a resource but has commented out code that uses a service. If you uncomment all the related code in books.html and books_controller.js the GET request does not work. When I inspect the models using Batarang I see
server: {
pushState: true,
// API Proxying
//
// During development, you'll likely want to make XHR (AJAX) requests to an API on the same
// port as your lineman development server. By enabling the API proxy and setting the port, all
// requests for paths that don't match a static asset in ./generated will be forwarded to
// whatever service might be running on the specified port.
//
apiProxy: {
enabled: true,
host: 'localhost',
port: 3000,
prefix: 'api'
// prefix: ''
},
},
When I try similar $http.get() requests to a local API I am using I get the same result. Am I doing something wrong or is this a bug?
By default the list-of-books template is setup to work with a resource but has commented out code that uses a service. If you uncomment all the related code in books.html and books_controller.js the GET request does not work. When I inspect the models using Batarang I see
my application.js has the following settings
When I try similar $http.get() requests to a local API I am using I get the same result. Am I doing something wrong or is this a bug?