fix(angular2): remove `angular2.ts` module

Closes #5815
Closes #5844

BREAKING CHANGE:

`angular2/angular2` was removed. Use the correct import from one of the barrels. E.g. `angular2/core`, `angular2/platform/browser`,  `angular2/common`, …

Note: This only applies to JavaScript, Dart is not changed.
This commit is contained in:
Tobias Bosch 2015-12-11 13:31:30 -08:00
parent 20c6eebb29
commit 200dc00dbb
4 changed files with 5 additions and 11 deletions

View File

@ -1,8 +0,0 @@
export * from './common';
export * from './core';
export * from './instrumentation';
export * from './platform/browser';
export * from './src/platform/dom/dom_adapter';
export * from './src/platform/dom/events/event_manager';
export * from './upgrade';
export * from './compiler';

View File

@ -124,7 +124,7 @@ module.exports = function makeNodeTree(projects, destinationPath) {
// because of the duplicate definitions.
// TODO(alexeagle): remove this when typescript releases a fix
nodeTree = replace(nodeTree, {
files: ['angular2/core.d.ts', 'angular2/angular2.d.ts'],
files: ['angular2/core.d.ts'],
patterns: [{match: /$/, replacement: 'import "./manual_typings/globals-es6.d.ts";\r\n'}]
});

View File

@ -1,4 +1,5 @@
import {Component, bootstrap, View} from 'angular2/angular2'
import {Component, View} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
@Component({
selector: 'my-app'

View File

@ -1,4 +1,5 @@
import {Component, bootstrap, View} from 'angular2/angular2';
import {Component, View} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router';
@Component({