angular / angular/components

docs(menu): add example of nested menus using dynamic data

Open
#7,434 33 comments 7 reactions 0 assignees View on GitHub
area: material/menu docs feature help wanted P4
Dominant language
TypeScript
Stars
25k
Forks
6.8k
Avg merge
1d 8h
Merged PRs (30d)
91

Description

#### Bug, feature request, or proposal:
Feature Request - Menu Docs

#### What is the expected behavior?
The docs would include an example of building a menu from a data structure similar to the [radio button docs](https://material.angular.io/components/radio/examples).

#### What is the current behavior?
The [menu docs](https://material.angular.io/components/menu/overview) only include a nested menu example using static HTML.

#### What are the steps to reproduce?
Working on a Stackblitz demo atm...

#### What is the use-case or motivation for changing an existing behavior?
This is a common use case for building application menus, especially for business applications. The data may come from a config file, a REST API, or some other source but it is very often not static and does not align with a static HTML example.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.3
TypeScript 2.3.4
Chrome 61
OS X El Capitan

#### Is there anything else we should know?
Thank you for your hard work on this library!

Contributor guide

Open the contributing guide

Research direction

Start with the menu documentation and compare its static nested-menu example with the dynamic-data pattern in the radio button documentation. Review the reported StackBlitz demo if available. Done means the menu docs include a working nested-menu example built from a data structure, with behavior that is clear from the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.