-
Notifications
You must be signed in to change notification settings - Fork 25.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
Intercepting Events/Properties on Renders #3929
Comments
/cc @tbosch @adamdbradley |
Like it.
|
Yes! This would allow us to easily have custom logic for "troublesome" properties and fix the following issues: |
Another case where interceptors would be useful: #6137 |
@mhevery Is the issue relevant? |
there is a POC of Renderer Interception here: https://github.com/trotyl/angular-contrib/tree/master/projects/core/src/render-intercept |
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. |
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. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Goal
Have a way to intercept events/properties on Renderer so that we could do things like:
Simple event integration
Here it we need to be able to register custom
ionic-swipe
event.Here we need to know that we need to create a custom element
jquery-ui
which is just adiv
upgraded with jquery-ui library to adate-picker
. The system then needs to be able to deduce that the jquery-ui has aselect
event and aminDate
property on it. These bindings/events are not registered using normal DOM api but using custom API.Proposal
Have a way to register synthetic
elements
,events
, andproperties
with theDOMRenderer
Requirements:
API:
The
DOMRenderer
will have additional API for registering "interceptors" per element name. This will allow custom code to be run on element creation, event registration and property updates.The text was updated successfully, but these errors were encountered: