【发布时间】:2014-07-25 18:34:58
【问题描述】:
在我的代码中我有这个:
/// <reference path="../../../../scripts/typings/angularjs/angular.d.ts" />
angular.module('question')
.controller('QuestionHomeController', [
'$http',
'enumService',
'$q',
'$rootScope',
'$scope',
'$state',
questionHomeController]);
function questionHomeController(
$http,
enumService,
$q,
$rootScope,
$scope,
$state
) {
谁能告诉我如何为 $http 和 $q 添加 Typescript 输入?我已经引用了 AngularJS 类型定义文件,但类型仍然没有显示
【问题讨论】:
标签: javascript angularjs typescript