i added following property systemjs.config.js
map object in angular 2 app:
'@angular/http': 'https://npmcdn.com/@angular/http'
when ctrl-click on url attempts download js file. however, when try import '@angular/http
' @ top of service.ts, compiler returns error "cannot find module '@angular/http
'.`"
is there additional step i'm missing in order module recognized , usable angular app? i'm using angular version 2.0.0-rc.4.
cdn path - https://npmcdn.com/@angular/http@2.0.0-rc.4/
by default, systemjs.config.js
looks index.js
in path.
refer plunker example - https://angular.io/resources/live-examples/quickstart/ts/plnkr.html
also, make sure while importing use below syntax-
import { http } '@angular/http';
see if helps.
Comments
Post a Comment