-
Notifications
You must be signed in to change notification settings - Fork 39
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
docs(components): update documentation on components #1583
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 83337c0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
0f1188f
to
272e3c2
Compare
272e3c2
to
032954f
Compare
9d0d606
to
9af489a
Compare
9af489a
to
1a76180
Compare
1a76180
to
47db863
Compare
```` | ||
|
||
Are not possible through an ``ng-template`` and ``c11n`` combination. | ||
|
||
Though there is a solution for the first example in making the value an input, and bind it inside the component using | ||
the [HostBinding](https://angular.io/api/core/HostBinding) decorator, there is no actual solution for applying directive. | ||
A [feature request](https://github.com/angular/angular/issues/8785) has been opened for a long time and finally made it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that the feature request finally made it, what is the next step ? :D
8a14754
to
5ade442
Compare
dee10a4
to
5975a5c
Compare
5975a5c
to
df9858c
Compare
d751810
to
48859f2
Compare
@@ -1,22 +1,21 @@ | |||
# Component replacement | |||
|
|||
## Overview | |||
|
|||
The goal of the feature is to make a component replaceable at runtime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which context?
Why do we need runtime replacement and can't just build an app as we wish to?
The idea might seem overkill so we should also introduce the reason for this need
|
||
* The type of the component to instantiate | ||
* The inputs and outputs to bind | ||
* The potential configuration override to apply | ||
|
||
Now let's see how to use that mechanism in practice. | ||
Now let's see how to set this mechanism up to create your replacable components. | ||
|
||
## Prepare your base app to register custom components | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use again the customProviders in this document, should we keep this part?
@@ -1,22 +1,21 @@ | |||
# Component replacement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many mentions of customization app/base app but we never introduce the concepts and we do not provide the script apply custo. We should probably rewrite this example and provide a simple example with a fetch of the replacement map
48859f2
to
cabe582
Compare
cabe582
to
83337c0
Compare
Proposed change
Update documentation for components