Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-model with iron-media-query #53

Open
M0nter0 opened this issue Aug 17, 2015 · 0 comments
Open

ng-model with iron-media-query #53

M0nter0 opened this issue Aug 17, 2015 · 0 comments

Comments

@M0nter0
Copy link

M0nter0 commented Aug 17, 2015

Is it working for anybody with iron-media-query element?
I'm working with ng-polymer-element for default elements and also including my own components without any problem. It's working really well, but when I've try to use it with iron-media-query I didn't get any result at the scope.

iron-media-query is working properly in its own dom-bind template. So I discard any malfunction of that element.

So my code:

Definition of property to bind:

angular.module('ng-polymer-elements').constant('$ngPolymerMappings', {
    ironMediaQuery : {
        ngModel: '=query-matches'
    }
});

And then I use it at my element as follows:

<iron-media-query query="(min-width: 630px)" ng-model="isBigScreen"></iron-media-query>

But isBigScreen property doesn't appear at my $scope.

Versions I'm using:
*AngularJS 1.4.4
*Polymer 1.1
*ng-polymer-elements 0.3.0

@GabiAxel GabiAxel reopened this Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants