• <bdo id='3BiYP'></bdo><ul id='3BiYP'></ul>
  • <legend id='3BiYP'><style id='3BiYP'><dir id='3BiYP'><q id='3BiYP'></q></dir></style></legend>

    <i id='3BiYP'><tr id='3BiYP'><dt id='3BiYP'><q id='3BiYP'><span id='3BiYP'><b id='3BiYP'><form id='3BiYP'><ins id='3BiYP'></ins><ul id='3BiYP'></ul><sub id='3BiYP'></sub></form><legend id='3BiYP'></legend><bdo id='3BiYP'><pre id='3BiYP'><center id='3BiYP'></center></pre></bdo></b><th id='3BiYP'></th></span></q></dt></tr></i><div id='3BiYP'><tfoot id='3BiYP'></tfoot><dl id='3BiYP'><fieldset id='3BiYP'></fieldset></dl></div>

        <small id='3BiYP'></small><noframes id='3BiYP'>

        <tfoot id='3BiYP'></tfoot>
      1. Google 的 Polymer 是一个功能齐全的前端框架,可以替代或补充其他前端框架吗?

        时间:2023-06-14
      2. <i id='AhmhV'><tr id='AhmhV'><dt id='AhmhV'><q id='AhmhV'><span id='AhmhV'><b id='AhmhV'><form id='AhmhV'><ins id='AhmhV'></ins><ul id='AhmhV'></ul><sub id='AhmhV'></sub></form><legend id='AhmhV'></legend><bdo id='AhmhV'><pre id='AhmhV'><center id='AhmhV'></center></pre></bdo></b><th id='AhmhV'></th></span></q></dt></tr></i><div id='AhmhV'><tfoot id='AhmhV'></tfoot><dl id='AhmhV'><fieldset id='AhmhV'></fieldset></dl></div>

        <small id='AhmhV'></small><noframes id='AhmhV'>

          <tbody id='AhmhV'></tbody>
        <tfoot id='AhmhV'></tfoot>
      3. <legend id='AhmhV'><style id='AhmhV'><dir id='AhmhV'><q id='AhmhV'></q></dir></style></legend>

                <bdo id='AhmhV'></bdo><ul id='AhmhV'></ul>
                1. 本文介绍了Google 的 Polymer 是一个功能齐全的前端框架,可以替代或补充其他前端框架吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  The question is in regard to AngularJS, BackboneJS, EmberJS and the other frameworks.

                  I have to translate a project from php to javascript and I have to decide, if I am going to use:

                  1. AngularJS
                  2. Polymer
                  3. A combination of them

                  I prefer using Polymer, because I like it.

                  Yet, I am missing (and correct me where I am wrong) the ability to make:

                  1. Views and link between them (like in Angualar)
                  2. Controllers

                  I know that the structure is up to me, on how to build my application, but it seems that angularjs has a well predefined structure for building mvc-applications.

                  Therefore I want to know: Is Polymer a substitute for Angular, if you want to build a well structured web application or is Polymer complementary library to be used along other existing frameworks?

                  EDIT 21.09.2014 No one really answered the question to my fullest satisfaction, therefore I marked it as not answered yet. Many say it just "DEPENDS". But no one is able to elaborate, on what exactly it depends.

                  On the complexity of the application? On the needs of the application? For what needs does Polymer fit and for which doesn't it fit? These are the answers I was looking for.

                  Some say it can be used as a frontend framework. Others say that is just a library and others say "Yes and No". Unfortunately rather confusing answers.

                  I wish there was an official answer to this, but I let you in on what my feeling is. I believe it is a substitute, but Polymer hasn't yet reached the structure, that other frameworks require to work. Maybe this is intentional, maybe it is just a matter of unreached maturity, because the framework is new.

                  I hope that the creators will explain, when it is best to use AngularJS and when should someone use Polymer for building large scalable web applications.

                  EDIT 15.08.2015

                  Polymer 1.0 is out. And it turns out Polymer is officially NOT a framework and is supposed to work in a complentary way with other frontend frameworks. https://youtu.be/fD2As5RmM8Q?t=6m42s

                  解决方案

                  IMHO both are two different things and they both are to serve two different purposes. Though they have some common features to offer, data-binding can be one of them.

                  Polymer

                  If you truly want to use the Awesome Webcomponents, Polymer is one way to achieve that. There are other options like you can go with your vanilla JS, or use other libraries like X-Tag from Mozilla or Bosonic. These libraries polyfill the webcomponent features which are still in drafted state. So, these libs help us have/provide the same user experience across browsers even where there is no native support for the webcomponents.

                  Angular

                  This is a full fledged MVC framework. And people here know what Angular as an MVC framework includes/provides.

                  That all said to answer your question

                  Google's Polymer is not exactly a fully functioning Frontend Framework and can be used as a Subsitute OR Complement to other Frontend Frameworks. It can be used as a substitution for the V part in Angular as MVC. Like people use React as V in different frameworks. It is not much a different case for me. Being more specific in case of Angular, Polymer is like directives in Angular 1.x while like components in upcoming Angular 2.x.


                  References

                  To be more sure of what I am talking about and for additional sources on how to use the Polymer with Angular2 (Angular2 not released to this date)

                  • you can check this video at "https://youtu.be/7WgEuNZCCHk?t=32m15s" starting from time 32:15 where Rob explains how to use the generic webcomponents/polymer as the components/View in the Angular2.
                  • you can check this project "https://github.com/rkirov/youtube-app" which uses Angular2 and google-youtube web component.
                  • https://github.com/ebidel/polymer-experiments/tree/master/polymer-and-angular/together
                  • From the polymer-starter-kit

                    Framework-free, or framework-compatible Build your app out of elements, or wire in an external framework to handle business logic. It's up to you!

                  So, in my view these two projects are not competing each other.


                  Webcomponent Specs

                  The webcomponent specs are here for one's reference

                  • Custom Elements - http://w3c.github.io/webcomponents/spec/custom/
                  • HTML Imports - http://w3c.github.io/webcomponents/spec/imports/
                  • Shadow DOM - http://w3c.github.io/webcomponents/spec/shadow/

                  I just wish the webcomponents are native to the evergreen browsers ASAP.

                  这篇关于Google 的 Polymer 是一个功能齐全的前端框架,可以替代或补充其他前端框架吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:AngularJS 指令中的两种数据绑定方式 下一篇:CSS 框架真的值得使用吗?

                  相关文章

                  <i id='WL7Ci'><tr id='WL7Ci'><dt id='WL7Ci'><q id='WL7Ci'><span id='WL7Ci'><b id='WL7Ci'><form id='WL7Ci'><ins id='WL7Ci'></ins><ul id='WL7Ci'></ul><sub id='WL7Ci'></sub></form><legend id='WL7Ci'></legend><bdo id='WL7Ci'><pre id='WL7Ci'><center id='WL7Ci'></center></pre></bdo></b><th id='WL7Ci'></th></span></q></dt></tr></i><div id='WL7Ci'><tfoot id='WL7Ci'></tfoot><dl id='WL7Ci'><fieldset id='WL7Ci'></fieldset></dl></div>

                  <legend id='WL7Ci'><style id='WL7Ci'><dir id='WL7Ci'><q id='WL7Ci'></q></dir></style></legend>
                      • <bdo id='WL7Ci'></bdo><ul id='WL7Ci'></ul>
                    1. <small id='WL7Ci'></small><noframes id='WL7Ci'>

                      <tfoot id='WL7Ci'></tfoot>