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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

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