I write React/Vue. As usual, I like to export/import a default component.
// export
export default class SomeComponent from Component {
// blahblah
}
// import
import SomeComponent from './some.js'
But when I use angular2+, I found a strange thing. It uses destructive import/export form.
// export
@Component({/* ... */})
export class SomeComponent {
// blahblah
}
// import
import {SomeComponent} from './some.component.ts'
Why? I think it a little troublesome. It's defined by Typescript rules or contributor?
defaultbutton :)