Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
799 views
in Technique[技术] by (71.8m points)

typescript - Difference between angular2/core and @angular/core

Might be very stupid but I have seen several uses of

import {Component} from 'angular2/core'

and

import {Component} from '@angular/core'

but I am not able to understand when to use one or another.

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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) 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...