Re: [w3c/webcomponents] [idea] Make use of `observedAttributes` optional (#565)

> Assuming your are building a `<google-map>` custom element, and you are accepting all map properties; more than 30 properties,  through attributes; e.g., `center`, `zoom`, etc,  Then, you also want to monitor the attribute change and update the map when it is changed.

That doesn't involve observing all content attributes. What you need is simply a dynamic filtering of a pre-determined set of content attributes. You can do that using `observedAttributes` and then applying any filtering mechanism.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/565#issuecomment-349473476

Received on Tuesday, 5 December 2017 23:15:14 UTC