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

Use getters and setters for default options #42

Open
jtrussell opened this issue Feb 2, 2014 · 2 comments
Open

Use getters and setters for default options #42

jtrussell opened this issue Feb 2, 2014 · 2 comments
Milestone

Comments

@jtrussell
Copy link
Owner

Assigning to snapRemoteProvider.globalOptions directly is clunky and creates confusions.

@dyba
Copy link

dyba commented Mar 3, 2014

How do you actually use snapRemote? I'm getting this error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module ngRatesApp due to:
Error: [$injector:unpr] Unknown provider: snapRemote

But I believe I have set it up correctly:

angular.module('ngRatesApp', [
  'snap'])
    .config ['$httpProvider', '$routeProvider', 'snapRemote',
      ($httpProvider, $routeProvider, snapRemote) ->
      # routes go here
      # snapRemote.globalOptions =
      #     touchToDrag: false
    ]

@jtrussell
Copy link
Owner Author

I think you just have a typo, should be:

angular.module('ngRatesApp', [
  'snap'])
    .config ['$httpProvider', '$routeProvider', 'snapRemoteProvider',
      ($httpProvider, $routeProvider, snapRemoteProvider) ->
      # routes go here
      # snapRemote.globalOptions =
      #     touchToDrag: false
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants