I am using a framework called angular-webpack-seed, it contains, webpack, ES2016, I want to make a simple ajax call using angular like the old way but it doesn't work.
export default class HomeController {
  constructor($http) {
    'ngInject';
    this.currentPlatform = '';
    this.platforms = ["WEB PORTAL", "ROKU", "Android", "iPhone"];
  }
  makeAjaxCall() {
    // Simple GET request example:
    $http({
      method: 'GET',
      url: '/index.html'
    }).then(function successCallback(response) {
      // this callback will be called asynchronously
      // when the response is available
    }, function errorCallback(response) {
      // called asynchronously if an error occurs
      // or server returns response with an error status.
    });
  }
  setPlatform(platform) {
    this.currentPlatform = platform;
    this.makeAjaxCall();
  }
  isSelected(platform) {
    return this.currentPlatform == platform;
  }
}
Please tell me what should I configure to get the $http work, now the console prompts that $http is not defined.
