The Wayback Machine - https://web.archive.org/web/20201108164714/https://github.com/ng-bootstrap/ng-bootstrap/pull/3725
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo(modal): improve explanations on entryComponents #3725

Open

Conversation

@jnizet
Copy link
Collaborator

@jnizet jnizet commented May 8, 2020

entryComponents is not needed anymore since Angular 9.

fix #3722

Before submitting a pull request, please make sure you have at least performed the following:

  • read and followed the CONTRIBUTING.md and DEVELOPER.md guide.
  • built and tested the changes locally.
  • added/updated any applicable tests.
  • added/updated any applicable API documentation.
  • added/updated any applicable demos.
entryComponents is not needed anymore since Angular 9.

fix #3722
bootstrap: [NgbdModalComponent],
entryComponents: [NgbdModalContent]
bootstrap: [NgbdModalComponent]
// entryComponents: [NgbdModalContent] // this line would be needed in Angular 8 or older

This comment has been minimized.

@pkozlowski-opensource

pkozlowski-opensource May 9, 2020
Member

It is more about ivy enabled or not - people can be on v9 and have ivy disabled. This situation will continue for a while (until we remove VE)

This comment has been minimized.

@jnizet

jnizet May 9, 2020
Author Collaborator

Right. I didn't want to be too technical, and simply assume the defaults here. Not sure if all people know what Ivy is and what they're using without knowing it. But I can of course be more precise. How about this?

this line is not needed if Ivy is used (i.e., by default, in Angular 9 or newer)

And the the text in the demo:

In this case, if you're still using ViewEngine (which is the default in Angular 8 or before) remember to add the content component
in the entryComponents section of your NgModule. For Ivy (which is the default in Angular 9 or newer), it's not needed anymore.

This comment has been minimized.

@benouat

benouat Jun 11, 2020
Member

What about detailing the text in demo without even referring to ViewEngine or Ivy ?

We could state up to Angular 8 and Angular 9+ ? at least, no confusing, no technical detail... Obviously we could have a detailed section (hidden by default) with a bit more explanation, where we talk about Ivy that can be disabled also in 9+)

@benouat
Copy link
Member

@benouat benouat commented May 14, 2020

@jnizet @pkozlowski-opensource jumping into the conversation here

I realised several times in the past, and today this PR is no exception, that demos are definitely not the right place to document/describe a feature.

Thus, wouldn't it be the right time to introduce the Modal Overview page ?

WDYT ? cc @maxokorokov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.