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

AnalyticsProvider.setAccount is not a function #192

Open
djvs opened this issue Jan 9, 2017 · 3 comments
Open

AnalyticsProvider.setAccount is not a function #192

djvs opened this issue Jan 9, 2017 · 3 comments
Labels

Comments

@djvs
Copy link

djvs commented Jan 9, 2017

Trying to just do the normal "config" section for AnalyticsProvider.

Followed config instructions...calling AnalyticsProvider.setAccount(...) gives this error...running debugger shows AnalyticsProvider as an empty {} object with a $get method. "setAccount" is just undefined.

Angular 1.5.8

@justinsa
Copy link
Collaborator

@djvs What error are you getting?

Do you have the module included as part of the dependencies?

Can you provide the code that isn't working? What you have provided so far is inadequate to determine what is wrong.

@djvs
Copy link
Author

djvs commented Jan 12, 2017 via email

@justinsa
Copy link
Collaborator

@djvs I cannot attempt to debug or identify the problem with what you have provided. A $get function is what a provider must expose in Angular. The fact you are seeing the $get function though implies you haven't called it in the config context. The quick start section in the README lays out exactly how to structure the Angular.config.

If you want help resolving this, you need to post code that shows how this is not working for you. If you cannot do that then we cannot assist you in resolving this.

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

No branches or pull requests

2 participants