diff --git a/src/cdk/stepper/stepper.ts b/src/cdk/stepper/stepper.ts index 24a02dc6545a..089555589f21 100644 --- a/src/cdk/stepper/stepper.ts +++ b/src/cdk/stepper/stepper.ts @@ -57,6 +57,7 @@ export class StepperSelectionEvent { } @Component({ + moduleId: module.id, selector: 'cdk-step', templateUrl: 'step.html', encapsulation: ViewEncapsulation.None diff --git a/src/cdk/stepper/tsconfig-build.json b/src/cdk/stepper/tsconfig-build.json index 4231d46ba702..2f9f6e461859 100644 --- a/src/cdk/stepper/tsconfig-build.json +++ b/src/cdk/stepper/tsconfig-build.json @@ -1,7 +1,8 @@ { "extends": "../tsconfig-build", "files": [ - "public_api.ts" + "public_api.ts", + "../typings.d.ts" ], "angularCompilerOptions": { "annotateForClosureCompiler": true, diff --git a/src/cdk/tsconfig-build.json b/src/cdk/tsconfig-build.json index c74fa84aaa3e..2ce5c0ace94e 100644 --- a/src/cdk/tsconfig-build.json +++ b/src/cdk/tsconfig-build.json @@ -25,7 +25,8 @@ } }, "files": [ - "public_api.ts" + "public_api.ts", + "typings.d.ts" ], "angularCompilerOptions": { "annotateForClosureCompiler": true, diff --git a/src/cdk/tsconfig-tests.json b/src/cdk/tsconfig-tests.json index b834ba802df0..2b24877a7677 100644 --- a/src/cdk/tsconfig-tests.json +++ b/src/cdk/tsconfig-tests.json @@ -14,7 +14,8 @@ } }, "files": [ - "./testing/index.ts" + "./testing/index.ts", + "typings.d.ts" ], "include": [ // Include the index.ts for each secondary entry-point diff --git a/src/cdk/typings.d.ts b/src/cdk/typings.d.ts new file mode 100644 index 000000000000..ce4ae9b66cf0 --- /dev/null +++ b/src/cdk/typings.d.ts @@ -0,0 +1 @@ +declare var module: {id: string}; diff --git a/src/lib/stepper/step-header.ts b/src/lib/stepper/step-header.ts index 14901227f698..b6624e2424c5 100644 --- a/src/lib/stepper/step-header.ts +++ b/src/lib/stepper/step-header.ts @@ -11,6 +11,7 @@ import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion import {MdStepLabel} from './step-label'; @Component({ + moduleId: module.id, selector: 'md-step-header, mat-step-header', templateUrl: 'step-header.html', styleUrls: ['step-header.css'],