[英]Angular 2 components/directives in Angular 4
Can I use Angular 2 components/directives in Angular 4? 我可以在Angular 4中使用Angular 2组件/指令吗? When I tried to use them I get the error
Uncaught ReferenceError: angular is not defined
. 当我尝试使用它们时,出现错误
Uncaught ReferenceError: angular is not defined
。
You can use Angular 2 components and directives in Angular 4 if they don't depend on features that were modified for Angular 4 (breaking changes) 如果不依赖于为Angular 4修改的功能(重大更改),则可以在Angular 4中使用Angular 2组件和指令。
Breaking changes are listed in https://github.com/angular/angular/blob/master/CHANGELOG.md 重大更改在https://github.com/angular/angular/blob/master/CHANGELOG.md中列出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.