Skip to content

Hello-jspm example and ES6 import. #4

@timfayz

Description

@timfayz

Hello, recently I start to learn ES6, so features like import is still new to me (to be honest even JS itself become dark forest to me).

So there is a first line in app.js:

import {bootstrap, Component, Template} from 'angular2/angular2';

Please, could you explain how transpiler understand what to import by magic angular2/angular2 path and from where. There is even no one folder named angular2 (only angular2.js exists in the root of angular-next jspm module). Looks like it gets dependency from air..

One more question out of this topic. I'm Go programmer and from Go's view (as many people know Go is one of the most minimalistic and well-designed language at the moment) JS looks like cart which is constantly charged an infinite number of new "features". Could you tell me will JS become more simpler when browsers implement ES6 in the near future? Or JS 'next' just filled with mass of new features that don't overwrite previous ones?

I'm sorry for the language mistakes I've made)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions