I'm trying to understand what will be the best way to use polymer with angularjs. I want the MVC powers of angular with the declarative simplicity of polymer elements. My two thought processes are to completely forego angular directives and only use polymer, or to wrap the polymer in a directive. The latter seems like it would work better with data binding and complex scope attributes, but may make the beauty of polymer a moot point since it's no longer very declarative at that point.
Thoughts? What's the best way to merge these two worlds?
I've been down that road before and, as far as I know, Angular.JS 2 will address this scenario someway. In the meantime, I suggest you try ngPolymer
With upcoming Angular2, the usage of polymer
as webcomponents
is going to be smoother and easier than with Angular1.
Please refer to the References
section of this answer.
This contains how can a project take best out of Angular2 & Polymer
both at the same time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With