refactor: export core APIs from angular2/core
This change moves many APIs to the angular2/core export. This change also automatically adds FORM_BINDINGS in the application root injector. BREAKING CHANGE: Many dependencies that were previously exported from specific APIs are now exported from angular2/core. Affected exports, which should now be included from angular2/core include: angular2/forms angular2/di angular2/directives angular2/change_detection angular2/bootstrap (except for dart users) angular2/render angular2/metadata angular2/debug angular2/pipes Closes #3977
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import {AppRootUrl} from "angular2/src/core/services/app_root_url";
|
||||
import {DOM} from "angular2/src/core/dom/dom_adapter";
|
||||
import {Injectable} from "angular2/di";
|
||||
import {Injectable} from "angular2/src/core/di";
|
||||
|
||||
/**
|
||||
* Extension of {@link AppRootUrl} that uses a DOM anchor tag to set the root url to
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {isBlank} from 'angular2/src/core/facade/lang';
|
||||
|
||||
/**
|
||||
|
@ -1,6 +1,6 @@
|
||||
library angular2.src.services.url_resolver;
|
||||
|
||||
import 'package:angular2/di.dart' show Injectable;
|
||||
import 'package:angular2/src/core/di.dart' show Injectable;
|
||||
|
||||
@Injectable()
|
||||
class UrlResolver {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Injectable} from 'angular2/di';
|
||||
import {Injectable} from 'angular2/src/core/di';
|
||||
import {
|
||||
isPresent,
|
||||
isBlank,
|
||||
|
Reference in New Issue
Block a user