-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
feat: make some components replaceable #2522
Conversation
…eplaceable-components
…d replaceable-route-container.component
…r from ngOnChanges
…ramework/abp into feat/replaceable-components
This reverts commit 11b2781.
… replaceable template directive #2404
…ts and outputs interfaces
added autocomplete attiribute to username and password inputs for chromium based browsers
added autocomplete attiribute to username and password inputs for chromium based browsers
…ramework/abp into feat/replaceable-components
…eplaceable-components
I've used this technic for creating a custom Personal Settings component which works fine. Error
Custom component registration For the custom registration component I copied the .html and .ts file from the framework and only changed selector and templateUrl in the .ts file. Any clues on what I am doing wrong? |
Hello @HenroOnline You can't use the lazy module specific components in your components. Lazy modules can't use the like a Remove the |
@mehmet-erim Thanks. Removing the AuthWrapperComponent and the surrounding <ng-template #mainContentRef>tag resolved the issue. |
Another question. Replacing the register component now works. But my validation messages are not visible (like required field). I copied the register.component.html and register.component.ts, removed the abp-auth-wrapper and template tags around. Without further changes no error messages are shown, the form is still validated and the form is not submitted until the username, email and password fields are filled in correct. When I disable the component replacement I see that with the original register component elements are placed under the fields that are not valid. This does not happen now. Any thoughts about it? |
@HenroOnline we use the You can import |
Thanks. Importing NgxValidateCoreModule did fix the problem. |
Closes #2404
Usage
Create a new component as you want. Add this component to
declarations
andentryComponents
in theAppModule
Then, open the
app.component.ts
and dispatch theAddReplaceableComponent
action to replace your component with an ABP component as shown below:Available replaceable components