最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Using Polymer with Angularjs - Stack Overflow

programmeradmin1浏览0评论

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 pletely 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 plex 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'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 pletely 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 plex 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?

Share Improve this question asked Aug 19, 2014 at 12:20 richbai90richbai90 5,2046 gold badges54 silver badges93 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 4

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 uping Angular2, the usage of polymer as webponents 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.

发布评论

评论列表(0)

  1. 暂无评论