Skip to content

Commit 79e0bf3

Browse files
committed
docs(examples/cdk/overlay): add overlay example component to dev-app
1 parent 50f3c6c commit 79e0bf3

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
import {NgModule} from '@angular/core';
9+
import {RouterModule} from '@angular/router';
10+
import {OverlayModule} from '@angular/cdk/overlay';
11+
import {CdkOverlayExamplesModule} from '@angular/components-examples/cdk/overlay';
12+
13+
import {OverlayDemo} from './overlay-demo';
14+
15+
@NgModule({
16+
imports: [
17+
OverlayModule,
18+
CdkOverlayExamplesModule,
19+
RouterModule.forChild([{path: '', component: OverlayDemo}]),
20+
],
21+
declarations: [OverlayDemo],
22+
})
23+
export class OverlayDemoModule {}

src/dev-app/overlay/overlay-demo.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<h3>Basic overlay</h3>
2+
<cdk-overlay-basic-example></cdk-overlay-basic-example>

src/dev-app/overlay/overlay-demo.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
import {Component} from '@angular/core';
9+
10+
@Component({
11+
templateUrl: 'overlay-demo.html',
12+
})
13+
export class OverlayDemo {}

0 commit comments

Comments
 (0)