Skip to content

Commit 200dc00

Browse files
committed
fix(angular2): remove angular2.ts module
Closes angular#5815 Closes angular#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.
1 parent 20c6eeb commit 200dc00

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

modules/angular2/angular2.ts

-8
This file was deleted.

tools/broccoli/trees/node_tree.ts

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

typing_spec/basic_spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Component, bootstrap, View} from 'angular2/angular2'
1+
import {Component, View} from 'angular2/core';
2+
import {bootstrap} from 'angular2/platform/browser';
23

34
@Component({
45
selector: 'my-app'

typing_spec/router_spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Component, bootstrap, View} from 'angular2/angular2';
1+
import {Component, View} from 'angular2/core';
2+
import {bootstrap} from 'angular2/platform/browser';
23
import {RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS} from 'angular2/router';
34

45
@Component({

0 commit comments

Comments
 (0)