me_digvijay me_digvijay - 1 month ago 30
TypeScript Question

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

Answer

Since first release candidate the packages are repackaging into individual packages one per each feature area.

angular2/core (before rc.0) -> @angular/core (>= rc.0)