[英]Angular2 Module Http for REST Services not found
When I'm using Meteor and Angular like it's described in the tutorial there is no Angular2 Module called Http
to user REST Services
. 当我按照教程中的描述使用Meteor和Angular时,没有
REST Services
用户使用名为Http
Angular2模块。
I used below tutorial from Meteor : 我使用了以下来自Meteor的教程:
http://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping http://www.angular-meteor.com/tutorials/socially/angular2/bootstrapping
When I want to import: 当我要导入时:
import {Http, HTTP_PROVIDERS} from 'angular2/http';
and I start meteor, I get this Error Message: 我开始流星,我收到以下错误消息:
[web.browser] client/app.ts (5, 36): Cannot find module 'angular2/http'.
[web.browser] client / app.ts(5,36):找不到模块“ angular2 / http”。
您是否将这一行放在index.html中?
<script src="https://code.angularjs.org/2.0.0-beta.0/http.dev.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.