本文介绍了angular2/core和@ angular/core之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能非常愚蠢,但是我已经看到
Might be very stupid but I have seen several uses of
import {Component} from 'angular2/core'和
import {Component} from '@angular/core'但我无法理解何时使用一种或另一种.
but I am not able to understand when to use one or another.
谢谢
推荐答案自第一个发布候选版本以来,这些软件包已重新打包为单独的软件包.现在,每个功能区域都有一个软件包.
Since the first release candidate the packages are repackaging into individual packages. There is now one package for each feature area.
angular2/core (before rc.0) -> @angular/core (>= rc.0)更多推荐
angular2/core和@ angular/core之间的区别
发布评论