Skip to content

Commit 86375ed

Browse files
committed
Update Angular 2 import. PR524
1 parent 9a23800 commit 86375ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/handbook/Module Resolution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
下面是一些例子:
3434

3535
* `import * as $ from "jQuery";`
36-
* `import { Component } from "angular2/core";`
36+
* `import { Component } from "@angular/core";`
3737

3838
相对导入解析时是相对于导入它的文件来的,并且*不能*解析为一个外部模块声明。
3939
你应该为你自己写的模块使用相对导入,这样能确保它们在运行时的相对位置。

0 commit comments

Comments
 (0)