Angular Polymer data-binding

前端 未结 5 1342
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-15 12:35

I want to make two way data binding between Polymer and Angular, for this I am using Angu-poly library.

Here is a link to an example which is working, while passing

相关标签:
5条回答
  • 2020-12-15 13:20

    I think it is because of some kind of reference.

    How should I explain, just like you work with object in scope in data binding. when you update the object to a new object, the UI will not update with new object values.

    0 讨论(0)
  • 2020-12-15 13:28

    It looks that Material Design is THE answer, excerpt:

    Our goal is to deliver a lean, lightweight set of AngularJS-native UI elements that implement the material design system for use in Angular SPAs.

    0 讨论(0)
  • 2020-12-15 13:28

    Maybe you could find clues from this blog even if its aim is for dart:

    Angular and Polymer Data Binding, Together!

    0 讨论(0)
  • 2020-12-15 13:30

    Here is an updated example http://plnkr.co/w1icAU

    With Polymer 1.0 two way binding is much simpler and also able to bind objects not just string values.

    Here is the main part

    <x-kid ng-repeat="kid in ::kids" angupoly="{name:'kid.name', age:'kid.age'}"></x-kid>
    
    0 讨论(0)
  • 2020-12-15 13:32

    Also take a look at ng-polymer, this project may help give you some insight

    0 讨论(0)
提交回复
热议问题