refactor(http): move http files to top-level module
Closes #2680 Closes #3417
This commit is contained in:
@ -4,6 +4,7 @@ environment:
|
||||
dependencies:
|
||||
angular2: '^<%= packageJson.version %>'
|
||||
angular2_material: '^<%= packageJson.version %>'
|
||||
http: '^<%= packageJson.version %>'
|
||||
browser: '^0.10.0'
|
||||
dev_dependencies:
|
||||
guinness: '^0.1.17'
|
||||
@ -14,6 +15,8 @@ dependency_overrides:
|
||||
path: ../angular2
|
||||
angular2_material:
|
||||
path: ../angular2_material
|
||||
http:
|
||||
path: ../http
|
||||
transformers:
|
||||
- angular2:
|
||||
$exclude:
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Component, View, NgFor} from 'angular2/angular2';
|
||||
import {Http, Response} from 'angular2/http';
|
||||
import {Http, Response} from 'http/http';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
@Component({selector: 'http-app'})
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// <reference path="../../../angular2/typings/rx/rx.d.ts" />
|
||||
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {httpInjectables} from 'angular2/http';
|
||||
import {httpInjectables} from 'http/http';
|
||||
import {HttpCmp} from './http_comp';
|
||||
|
||||
export function main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {HttpCmp} from './http_comp';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {httpInjectables} from 'angular2/http';
|
||||
import {httpInjectables} from 'http/http';
|
||||
|
||||
export function main() {
|
||||
// This entry point is not transformed and exists for testing dynamic mode.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// <reference path="../../../angular2/typings/rx/rx.d.ts" />
|
||||
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {jsonpInjectables} from 'angular2/http';
|
||||
import {jsonpInjectables} from 'http/http';
|
||||
import {JsonpCmp} from './jsonp_comp';
|
||||
|
||||
export function main() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {JsonpCmp} from './jsonp_comp';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {jsonpInjectables} from 'angular2/http';
|
||||
import {jsonpInjectables} from 'http/http';
|
||||
|
||||
export function main() {
|
||||
bootstrap(JsonpCmp, [jsonpInjectables]);
|
||||
|
@ -1,7 +1,7 @@
|
||||
library examples.src.jsonp.jsonp_comp;
|
||||
|
||||
import "package:angular2/angular2.dart" show Component, View, NgFor;
|
||||
import "package:angular2/http.dart" show Jsonp;
|
||||
import "package:http/http.dart" show Jsonp;
|
||||
import "package:angular2/src/facade/async.dart" show ObservableWrapper;
|
||||
|
||||
@Component(selector: "jsonp-app")
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Component, View, NgFor} from 'angular2/angular2';
|
||||
import {Jsonp, Response} from 'angular2/http';
|
||||
import {Jsonp, Response} from 'http/http';
|
||||
import {ObservableWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
@Component({selector: 'jsonp-app'})
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
Location,
|
||||
RouteParams
|
||||
} from 'angular2/router';
|
||||
import {Http, Response} from 'angular2/http';
|
||||
import {Http, Response} from 'http/http';
|
||||
import {ObservableWrapper, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
import {ListWrapper} from 'angular2/src/facade/collection';
|
||||
import {isPresent} from 'angular2/src/facade/lang';
|
||||
|
@ -2,7 +2,7 @@ import {InboxApp} from './inbox-app';
|
||||
import {bind} from 'angular2/angular2';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {routerInjectables, HashLocationStrategy, LocationStrategy} from 'angular2/router';
|
||||
import {httpInjectables} from 'angular2/http';
|
||||
import {httpInjectables} from 'http/http';
|
||||
|
||||
import {reflector} from 'angular2/src/reflection/reflection';
|
||||
import {ReflectionCapabilities} from 'angular2/src/reflection/reflection_capabilities';
|
||||
|
Reference in New Issue
Block a user