Skip to content

Allow to mock out components in Codgen mode #6276

Closed

Description

@tbosch

Right now, the codgen'ed views reference other views directly.
We need a mode for codegen that goes via a global registry that can be used by test to install mock components.

So:

  • Change the codegen / transformer to have a special mode/flag that reads this global registry
  • Add TestComponentBuilder.replaceComponent to use this registry
  • Create a first integration test that uses precompiled components

Activity

  1. self-assigned this
    on Jan 6, 2016
  2. tbosch commented on Feb 3, 2016

    @tbosch
    ContributorAuthor

    This is obsolete as with #6270 we can ensure the same semantics for codegen and interpretative mode.

  3. angular-automatic-lock-bot commented on Sep 7, 2019

    @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.

  4. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions