content: Controller Modals example with bug

Open
#4,014 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Locate the Controller Modals example and inspect modal-example.component.ts, along with the route added in app.routes.ts. Reproduce the standalone Angular example and verify that opening the modal no longer produces NG01203 or prevents the form from working.

Written by the indexing model from the issue text.

Description

content
Describe the Bug

Import "IonInput" required at "modal-example.component.ts" file, but missing, angular can't receive NG_VALUE_ACCESSOR

Expected Behavior

Expected that form will working, but actually receive "ERROR RuntimeError: NG01203: No value accessor for form control unspecified name attribute. Find more at https://angular.dev/errors/NG01203" error

Steps to Reproduce
  1. ionic start
  2. select no
  3. angular
  4. test
  5. blank
  6. standalone
  7. copy all files from controller modals example
  8. add new route to app.routes.ts
    {
    path: 'example',
    loadComponent: () => import('./example/example.component').then((m) => m.ExampleComponent),
    },
  9. open app and navigate to "/example"
  10. open console
  11. press "open" button
Screenshots

No response

Operating System

No response

Browser

No response

Version

No response

Additional Information

No response

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.