diff --git a/src/demo-app/demo-app-module.ts b/src/demo-app/demo-app-module.ts index 98b2c3dc8b1e..0563f49cb234 100644 --- a/src/demo-app/demo-app-module.ts +++ b/src/demo-app/demo-app-module.ts @@ -76,10 +76,12 @@ import { MdToolbarModule, MdTooltipModule, OverlayContainer, - StyleModule + StyleModule, + StickyHeaderModule } from '@angular/material'; import {CdkTableModule} from '@angular/cdk'; import {TableHeaderDemo} from './table/table-header-demo'; +import {StickyHeaderDemo} from './sticky-header/sticky-header-demo'; /** * NgModule that includes all Material modules that are required to serve the demo-app. @@ -118,7 +120,8 @@ import {TableHeaderDemo} from './table/table-header-demo'; MdTooltipModule, MdNativeDateModule, CdkTableModule, - StyleModule + StyleModule, + StickyHeaderModule ] }) export class DemoMaterialModule {} @@ -184,6 +187,7 @@ export class DemoMaterialModule {} PlatformDemo, TypographyDemo, ExpansionDemo, + StickyHeaderDemo ], providers: [ {provide: OverlayContainer, useClass: FullscreenOverlayContainer}, diff --git a/src/demo-app/demo-app/demo-app.ts b/src/demo-app/demo-app/demo-app.ts index 3f422c3ccd5c..7f57dcfc4aa2 100644 --- a/src/demo-app/demo-app/demo-app.ts +++ b/src/demo-app/demo-app/demo-app.ts @@ -67,7 +67,8 @@ export class DemoApp { {name: 'Tooltip', route: 'tooltip'}, {name: 'Platform', route: 'platform'}, {name: 'Style', route: 'style'}, - {name: 'Typography', route: 'typography'} + {name: 'Typography', route: 'typography'}, + {name: 'Sticky Header', route: 'sticky-header'} ]; constructor(private _element: ElementRef) { diff --git a/src/demo-app/demo-app/routes.ts b/src/demo-app/demo-app/routes.ts index 875dc907e604..fc285e69d9d2 100644 --- a/src/demo-app/demo-app/routes.ts +++ b/src/demo-app/demo-app/routes.ts @@ -36,6 +36,7 @@ import {DatepickerDemo} from '../datepicker/datepicker-demo'; import {TableDemo} from '../table/table-demo'; import {TypographyDemo} from '../typography/typography-demo'; import {ExpansionDemo} from '../expansion/expansion-demo'; +import {StickyHeaderDemo} from '../sticky-header/sticky-header-demo'; export const DEMO_APP_ROUTES: Routes = [ {path: '', component: Home}, @@ -74,4 +75,5 @@ export const DEMO_APP_ROUTES: Routes = [ {path: 'style', component: StyleDemo}, {path: 'typography', component: TypographyDemo}, {path: 'expansion', component: ExpansionDemo}, + {path: 'sticky-header', component: StickyHeaderDemo} ]; diff --git a/src/demo-app/sticky-header/sticky-header-demo.html b/src/demo-app/sticky-header/sticky-header-demo.html new file mode 100644 index 000000000000..2710f172590e --- /dev/null +++ b/src/demo-app/sticky-header/sticky-header-demo.html @@ -0,0 +1,33 @@ +
{{item.name}} : {{item.messages}}
+{{item.name}} : {{item.messages}}
+{{item.name}} : {{item.messages}}
+{{item.name}} : {{item.messages}}
+{{item.name}} : {{item.messages}}
+