Document best practices for handling modal life cycle events with frameworks

Open
#2,340 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
angular

Research direction

Start with the modal API page at https://ionicframework.com/docs/api/modal and read the linked reference issue #25250. Identify the lifecycle events and framework guidance currently missing, especially the Angular case involving presentation outside a component. Done means the page documents clear best practices for listening and responding after an ion-modal is presented.

Written by the indexing model from the issue text.

Description

content

URL
The URL at which the content is missing or inaccurate: https://ionicframework.com/docs/api/modal

What is missing or inaccurate about the content on this page?

We should document best practices with life cycle events for ion-modal and frameworks. Since it is a common pattern to present the modal from code external to a component, for example in Angular within a service; developers will need to be instructed on how to best listen and respond for when the modal is presented from their component.

For Angular, it makes the most sense to use rxjs subjects to emit changes after the modal is presented.

Reference issue: https://github.com/ionic-team/ionic-framework/issues/25250

Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/ionic-docs

All issues in ionic-team/ionic-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.