Angular 2 RC6 Problem !!!
So imagine a situation where we have a standard class such as ...
export abstract class FooBase {}
and then we want to export this class, which will be used by other modules in the Angular 2 RC6 web application, the NgModule code may look like this:
@NgModule({ declarations: [FooBase], exports: [FooBase], imports: [CommonModule], }) export class OurModule {}
Unfortunately, when starting this inner chrome, it returns with ...
Unexpected value 'FooBase' exported from module 'OurModule'
This base class is used to extend an existing class inside another module, actually a simple one that I am doing wrong here.
source share