Untested, but I suspect you can pull this off by setting up a base element
that defines the autosave attribute and behavior - and have all/most of
your custom elements
inherit<http://www.polymer-project.org/docs/polymer/polymer.html#extending-other-elements>from
it

On Wed Apr 30 2014 at 2:12:54 PM, James Campos <james.r.cam...@gmail.com>
wrote:

> is there a polymer equivalent to angularjs attribute directives? i want to
> define an 'autosave' attribute, which i can add to arbitrary elements, and
> will automatically save their contents to local storage. is there a way to
> do this with polymer?
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to polymer-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/f3b35c62-e908-4128-9daa-77ab08bf12c5%40googlegroups.com<https://groups.google.com/d/msgid/polymer-dev/f3b35c62-e908-4128-9daa-77ab08bf12c5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to polymer-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAKc-BFhPqt2a91yYBFroRA54LFqc0EY8LiunhWad95aGuw35xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to