Git Product home page Git Product logo

angular-bind-polymer's Issues

Not working in transclude

Binding is not working when directive uses transcluding. For example ng-repeat or custom directive.
Do you know the way how to solve this problem?
Looks like observers don't exist any longer.

Binding to a paper-input elemtent

This scenario will show blank pre elements?
<paper-input label="test" floatingLabel bind-polymer value="{{test}}" inputValue="{{testing}}">
</paper-input>
<pre>{{test}}</pre>
<pre>{{testing}}</pre>

Demo?

Please make demostration

The demo page not working

I was creating some POCs around angular and polymer and wanted to have two-way data binding working between them. However, two-way binding did not work with my POC. I have installed angular-bind-polymer separately and tried with the demo index page you have created. Binding is not working with demo page as well. What am I doing wrong here?

Multiple bindings in one page

When there are multiple bind-polymer attributes only when the first input will update the other inputs would update.

Two-way binding does not woork after adding scope to the directive

I have added scope to the directive like below.

angular.module('angularBindPolymer', []).
directive('bindPolymer', function() {
  return {
    restrict: 'A',
    scope: {change: "="}, // Scope added here
    link: function(scope, element, attrs) {
        .........
    }
}

After I added the scope, the two way bind stopped working. If I remove scope then everything is back to normal.

only can bind with strings?

I have had no luck trying to bind complex objects.

Does not work:

     <template>
            <input id="inputField" type="text" value="{{boundModel.name}}" on-click="{{setFocus}}">
    </template>

where boundModel is a object with property name.

Works:

     <template>
            <input id="inputField" type="text" value="{{boundModel}}" on-click="{{setFocus}}">
    </template>

where boundModel is a string.

Angular bind polymer throws exceptions with ng-if or ui-router

When I use the bind polymer directive on elements hidden with ng-if and for example indirectly via ui-router, I get the following exception:

 TypeError: Cannot read property 'match' of undefined
    at link (http://localhost:8080/bower_components/angular-bind-polymer/angular_bind_polymer.js:11:43)
    at Z (http://localhost:8080/bower_components/angular/angular.min.js:70:149)
    at A (http://localhost:8080/bower_components/angular/angular.min.js:59:203)
    at g (http://localhost:8080/bower_components/angular/angular.min.js:51:299)
    at A (http://localhost:8080/bower_components/angular/angular.min.js:59:147)
    at $get.c (http://localhost:8080/bower_components/angular/angular.min.js:66:333)
    at g (http://localhost:8080/bower_components/angular/angular.min.js:51:299)
    at http://localhost:8080/bower_components/angular/angular.min.js:50:415
    at $get.h (http://localhost:8080/bower_components/angular/angular.min.js:52:283)
    at l (http://localhost:8080/bower_components/angular/angular.min.js:56:293)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.