Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

import { * } from "@angular" instead of "angular2"

I am little confused here in angular2. Many example show like

import { Component } from "@angular/core"

But actually in node_module there is angular2directory exists. So logically it should be

import { Component } from "angular2/core" 

What is the difference between this two ?

like image 930
Nishchit Avatar asked May 10 '16 11:05

Nishchit


1 Answers

That's a change that was introduced with the update from beta.17 to rc.0

https://github.com/angular/angular/blob/master/CHANGELOG.md#200-rc0-2016-05-02

like image 178
Günter Zöchbauer Avatar answered Nov 09 '22 00:11

Günter Zöchbauer