1

I am in a problem with using bower components in typeScript. Is it possible use bower_components. I import bower_component in index.html but it's not import for other .html. Can you please give solution for this issue.

This import line in index.html.

 <link rel="import" href="bower_components/...html" />

Thank you.

Jenny
  • 13
  • 4

1 Answers1

0

Look at your errors if it is stating to add CUSTOM_ELEMENTS_SCHEMA then you can add this to your AppModule

schemas: [CUSTOM_ELEMENTS_SCHEMA]

@NgModule({
    declarations: [ HeaderComponent ],
    bootstrap:    [ HeaderComponent ],
    imports: [ RouterModule, CommonModule, FormsModule ],
    schemas: [ CUSTOM_ELEMENTS_SCHEMA ]
})
export class AppModule { }
anshuVersatile
  • 2,030
  • 1
  • 11
  • 18
  • How do I add CUSTOM_ELEMENTS_SCHEMA to my project. I am new to typescript So can you show me example. Thanks – Jenny Dec 07 '16 at 08:11