Javascript : Import
Import are another thing added by ES6.
I think it imports and exports classes;
import {Heater} from './heater';
export class CoffeeMaker {
// ...
}
Annotations
This may or may not be included in ES6 future versions.
Current Javascript
var CoffeeMaker = function(...) {
// ...
}
CoffeeMaker.annotations = [
new Inject(Grinder, Pump, Heater)
]
Maybe New
@Inject(Grinder, Pump, Heater)
class CoffeeMaker {
//...
}