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

Problem loading ng-token-auth into ionic app #150

Closed
dshcheung opened this issue May 25, 2015 · 1 comment
Closed

Problem loading ng-token-auth into ionic app #150

dshcheung opened this issue May 25, 2015 · 1 comment

Comments

@dshcheung
Copy link

For some reason, when I put ng-token-auth into my new ionic app project, It would work in browser but when I emulate in ios it just get stuck at index.html

Note: I create a new ionic app just to make sure it wasn't because of all the crap I put into my actual app

ionic start myApp tabs
ionic platform add ios
ionic build ios
bower install ng-token-auth --save
// added these to index.html - changed /js to /lib because thats where bower install in ionic
<script src="/lib/angular/angular.js"></script>
<script src="/lib/angular-cookie/angular-cookie.js"></script>
<script src="/lib/ng-token-auth/dist/ng-token-auth.js"></script>
// added 'ng-token-auth' in app.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ng-token-auth'])
ionic emulate ios

At this point, even without adding anything else, my ionic app will not work in emulate ios.

Is there any fix for this? or am I doing something wrong?

@dshcheung
Copy link
Author

Spent 3 hours trying to get it to work in ionic. And since ionic doesn't have console like the browser console, it doesn't tell me that it couldn't find ng-token-auth.js

It is only when I installed https://www.genuitec.com/products/gapdebug/ that it tell me its missing ng-token-auth.js and it is because i have "/" in the path for the file in the script. By removing the "/" it worked

nbrustein pushed a commit to nbrustein/ng-token-auth that referenced this issue May 27, 2015
…dation

Check email format on registration
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