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

Installing on Rails site using Angular #26

Closed
ACPK opened this issue Sep 4, 2014 · 4 comments
Closed

Installing on Rails site using Angular #26

ACPK opened this issue Sep 4, 2014 · 4 comments

Comments

@ACPK
Copy link

ACPK commented Sep 4, 2014

I have an Angular site within a Rails app, but am unable to install 'ng-token-auth'. I have:

  1. Installed, 'rails-bower'
  2. Added 'ng-token-auth' to the 'Bowerfile'
  3. Added the following to the config/application.rb file
    • config.assets.paths << Rails.root.join("vendor","assets","bower_components")
  4. Added '//= require ng-token-auth' to my 'assets/javascripts/ng-application.js'
  5. Added 'ng-token-auth' to my angular.module( 'myApp', [ ..... ])

Get the error:

Uncaught Error: [$injector:modulerr] Failed to instantiate module myApp due to:
Error: [$injector:modulerr] Failed to instantiate module ng-token-auth due to:
Error: [$injector:modulerr] Failed to instantiate module ngCookies due to:
Error: [$injec......2)

@smarquez1
Copy link

Try including "angular-cookies" in your bower.json and loading it in your ng-application.js file

@lynndylanhurley
Copy link
Owner

Thanks @smarquez1! I'll make a note of this in the installation instructions.

@ACPK
Copy link
Author

ACPK commented Sep 4, 2014

Thank you @smarquez1!

@lynndylanhurley
Copy link
Owner

I just updated the installation instructions. Let me know if this isn't clear:
https://github.com/lynndylanhurley/ng-token-auth#installation

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