javascript - Polymer attribute directive -


is there way achieve angularjs attribute directive in polymer. want call function based on particular attribute attached element.

this works me right now, non-generic. there easier way extend behavior of elements using attributes like

<paper-input behavior="custom-behavior" custom-behavior-attribute="some-data"></paper-input> 

i have started building app in polymer done in angular. had same query running on mind , found link related topic , says polymer's behavior equivalent angular's attribute directive.

https://plus.google.com/+justinfagnani/posts/ejdr14ba7dj

it useful if can confirm there no other approach available achieve same.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -