Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 152824f

Browse files
committed
fix broken cb-component-comm
1 parent 47f26e5 commit 152824f

File tree

1 file changed

+8
-2
lines changed
  • public/docs/_examples/cb-component-communication/ts/app

1 file changed

+8
-2
lines changed

public/docs/_examples/cb-component-communication/ts/app/app.module.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33

44
import { AppComponent } from './app.component';
@@ -30,19 +30,25 @@ let directives: any[] = [
3030
VoteTakerComponent
3131
];
3232

33+
let schemas: any[] = [];
34+
3335
// Include Countdown examples
3436
// unless in e2e tests which they break.
3537
if (!/e2e/.test(location.search)) {
3638
console.log('adding countdown timer examples');
3739
directives.push(CountdownLocalVarParentComponent);
3840
directives.push(CountdownViewChildParentComponent);
41+
} else {
42+
// In e2e test use CUSTOM_ELEMENTS_SCHEMA to supress unknown element errors
43+
schemas.push(CUSTOM_ELEMENTS_SCHEMA);
3944
}
4045

4146
@NgModule({
4247
imports: [
4348
BrowserModule
4449
],
4550
declarations: directives,
46-
bootstrap: [ AppComponent ]
51+
bootstrap: [ AppComponent ],
52+
schemas: schemas
4753
})
4854
export class AppModule { }

0 commit comments

Comments
 (0)