I am stuck in a situation here. I am getting an error like this.
compiler.es5.js:1694 Uncaught Error: Unexpected value \'LoginComponent\' declared by the modul
If you are exporting another class in that module, make sure that it is not in between @Component
and your ClassComponent
. For example:
@Component({ ... })
export class ExampleClass{}
export class ComponentClass{} --> this will give this error.
FIX:
export class ExampleClass{}
@Component ({ ... })
export class ComponentClass{}