Skip to content

In AIO docs, indicate thatReactiveFormsModule.withConfig method is deprecated #22640

Closed

Description

@kara

Example:

export class ReactiveFormsModule {
  static withConfig(opts: {
    /** @deprecated from v6 */ warnOnNgModelWithFormControl: 'never' | 'once' | 'always'
  }): ModuleWithProviders {
    return {
      ngModule: ReactiveFormsModule,
      providers: [{
        provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,
        useValue: opts.warnOnNgModelWithFormControl
      }]
    };
  }
}

Activity

  1. added this to the needsTriage milestone on Mar 8, 2018
  2. added
    featureLabel used to distinguish feature request from other issues
    on Mar 8, 2018
  3. modified the milestones: needsTriage, Backlog on Mar 8, 2018
  4. petebacondarwin commented on Mar 8, 2018

    @petebacondarwin
    Contributor

    Can we clarify what should happen if this occurs?

    Right now, "literal types" like this are not currently documented in any real sense except by a description on the parameter itself. Moreover, as it stands right now, they are not parsed as "dgeni documents" in themselves so we don't read any jsdoc tags on such a comment. The TypeScript parser is able to read the comment and attach it appropriately in its AST so it would be possible to do something with it.

    That being said, I would like to propose that if one wants to mark up literal types like this, then it is an indicator that perhaps it is time to convert the literal type into an interface instead. This can then be fully documented and each of its members can be tagged individually.

  5. petebacondarwin commented on Mar 8, 2018

    @petebacondarwin
    Contributor

    @IgorMinar - the last paragraph of my previous comment is perhaps a more general comment about the Angular code base. I think we use too many literal types, especially large ones, which might look neat at the time and work well with intellisense but are a pain to document (as @jbogarthyde has found). My understanding from @alxhub is that too many interfaces are frowned upon as it dilutes the API surface, but I would argue it just moves the API surface complexity elsewhere. From a documentation point of view, we could tag some API elements as "primary" and make them more visually prominent in the docs. Perhaps we could filter out the auxiliary API elements from the main views and only show them if requested?

  6. 12 remaining items

  7. changed the title [-]API docs should support deprecated properties in object literals[/-] [+]Deprecate `ReactiveFormsModule.withConfig` method[/+] on Oct 23, 2018
  8. jenniferfell commented on May 10, 2019

    @jenniferfell
    Contributor

    Related issue proposing to add properties and methods to the Deprecations summary deprecations.md: #30098

  9. changed the title [-]Deprecate `ReactiveFormsModule.withConfig` method[/-] [+]In AIO docs, indicate that`ReactiveFormsModule.withConfig` method is deprecated[/+] on May 10, 2019
  10. removed their assignment
    on May 10, 2019
  11. angular-robot commented on Jun 4, 2021

    @angular-robot
    Contributor

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  12. angular-robot commented on Jun 24, 2021

    @angular-robot
    Contributor

    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.

  13. mgechev commented on Mar 21, 2022

    @mgechev
    Member

    Seems like the issue is no longer relevant. Please open a new issue if I'm mistaken.

  14. angular-automatic-lock-bot commented on Apr 21, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  15. locked and limited conversation to collaborators on Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions