I am trying to change from using external (export
) modules, to using internal modules. But I am getting an error when I remove the \"export\".
I have a fil
On the whole, it is best to avoid mixing internal and external modules.
External modules (or modules as they are now known) are actually rather graceful, and you can organise your code really well without internal modules (or namespaces as they are now known).
box.ts:
import {computedFrom} from 'aurelia-framework';
export class Box { .. Stuff }
service-actions.ts:
import {Box} from './box'
var box = new Box();