Skip to content

Commit

Permalink
fix(components-examples): rename example component to follow naming c…
Browse files Browse the repository at this point in the history
…onvention for autoloading in docs (#19142)

Co-authored-by: Annie Wang <annieyw@google.com>
  • Loading branch information
2 people authored and jelbourn committed Apr 23, 2020
1 parent cedae6f commit 9c8e87e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/components-examples/material/menu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ import {MatMenuModule} from '@angular/material/menu';
import {MenuIconsExample} from './menu-icons/menu-icons-example';
import {MenuOverviewExample} from './menu-overview/menu-overview-example';
import {MenuPositionExample} from './menu-position/menu-position-example';
import {NestedMenuExample} from './nested-menu/nested-menu-example';
import {MenuNestedExample} from './menu-nested/menu-nested-example';

export {
MenuIconsExample,
MenuOverviewExample,
MenuPositionExample,
NestedMenuExample,
MenuNestedExample,
};

const EXAMPLES = [
MenuIconsExample,
MenuOverviewExample,
MenuPositionExample,
NestedMenuExample,
MenuNestedExample,
];

@NgModule({
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Component} from '@angular/core';

/**
* @title Nested menu
*/
@Component({
selector: 'menu-nested-example',
templateUrl: 'menu-nested-example.html',
styleUrls: ['menu-nested-example.css'],
})
export class MenuNestedExample {}

This file was deleted.

2 changes: 1 addition & 1 deletion src/material/menu/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ that should trigger the sub-menu:
</button>
```

<!-- example(nested-menu) -->
<!-- example(menu-nested) -->

### Lazy rendering
By default, the menu content will be initialized even when the panel is closed. To defer
Expand Down

0 comments on commit 9c8e87e

Please sign in to comment.