Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.06 KB

AOT_NOTES.md

File metadata and controls

69 lines (46 loc) · 1.06 KB

AOT Notes

About barred latin O(ɵ)

angular/angular#16583 (comment)

angular/angular#18018 (comment)

https://github.com/angular/material2/blob/master/tools/package-tools/compile-entry-point.ts#L30

The prefixed symbols are indeed private (see documentation). The must be exported because they are being used by the code generated by the AOT compiler.

Bad

/x-module/index.ts

export * from './x-module';

/x-module/x-module.ts

export class XModule {}

/index.ts

export * from './root-module';
export * from './x-module';

/root-module.ts

//bad
import { XModule } from './x-module/x-module';
export class RootModule {}

Good

/x-module/index.ts

export * from './x-module';

/x-module/x-module.ts

export class XModule {}

/index.ts

export * from './root-module';
export * from './x-module';

/root-module.ts

//good
import { XModule } from './x-module';
export class RootModule {}