question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docs(material): examples in jsdocs

See original GitHub issue

Feature Description

Currently the jsdocs on components is very minimal, with very little detail

https://github.com/angular/components/blob/39921f43382e3abc90c14fd8602d0cf371239fce/src/material/button/button.ts#L62-L64

Example how how this displays in VS Code Screen Shot 2021-11-27 at 20 01 22

With material-experiential things seem greatly improved https://github.com/angular/components/blob/39921f43382e3abc90c14fd8602d0cf371239fce/src/material-experimental/mdc-button/button.ts#L30-L38

But I think there is still a few things missing. There is a link to the material design docs which is great, but it would be awesome to have a link to the Angular Material documentation which has code examples and live demos.

Additionally it would be cool to have code examples in the JSDocs themselves. This helps with discoverability of different ways of using components, for example showing the mat-flat-button as an example would be quite useful on the mat-button JSDoc

Use Case

Having faster access to documentation will not only help new developers who are not familiar with all the APIs that @angular/material has to offer, but also help refresh the memory of any developers who works in many context, such as backend work.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wagnermacielcommented, Feb 15, 2022

@bonganiSibiya All yours. Nobody has started this issue yet

0reactions
angular-robot[bot]commented, Apr 3, 2022

Thank you for submitting your feature request! Looks like during the polling process it didn’t collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular’s scope, we’d encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use JSDoc: @example
Overview. Provide an example of how to use a documented item. The text that follows this tag will be displayed as highlighted code....
Read more >
A Guide to using JSDoc for React.js - Inkoop
A Guide to using JSDoc for generating documentation for react.js applications. Find out the benefits of using JSDoc and using JSDoc with ...
Read more >
JSDoc: Home - Fabric.js
How to navigate the docs? Here's a hierarchy of Fabric's object model, to make it easier: Main rendering surface. fabric.Canvas · fabric.StaticCanvas ...
Read more >
Material – three.js docs
The following properties and methods are inherited by all other material types ... See WebGL / Materials / Physical / Transmission for an...
Read more >
JSDoc - Wikipedia
JSDoc is a markup language used to annotate JavaScript source code files. Using comments containing JSDoc, programmers can add documentation ... ExampleEdit.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found