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

Uncaught TypeError: callback is not a function match-media.js:155 #46

Open
Mr-Anonymous opened this issue Mar 17, 2018 · 0 comments
Open

Comments

@Mr-Anonymous
Copy link

Mr-Anonymous commented Mar 17, 2018

I installed this plugin in Angular 1.3 and I am using the .on method like this:

Main Controller:

vm.desktop = screenSize.on('md, lg');
vm.mobile = screenSize.on('xs, sm');

Ng-View:

<div ng-if="main.desktop">
  Show Desktop
</div>

<div ng-if="main.mobile">
  Show Mobile
</div>

Uploading media-query-plugin.png…

When the browser is resized, I keep getting this error in Google Chrome Console:

match-media.js:155 
Uncaught TypeError: callback is not a function
    at listenerFunc (match-media.js:155)
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

1 participant