LoginSignup
0
0

More than 5 years have passed since last update.

Angularjsの$httpでポート指定

Last updated at Posted at 2016-07-17

実は下記の通り、urlの項目に:ポート番号と直接追記するだけ。

$http.post('http://localhost:8888/index.php')

使用例

controller.js
angular.module('starter.controllers', [])
.controller('AppCtrl', function($scope, $http) {
  $http.post('http://localhost:8888/index.php');
});

js STUDIOには\$httpではなく$resourceの項目にポート指定の方法が書いてあった。
http://js.studio-kingdom.com/angularjs/ngresource_service/$resource

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0