This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
Infinite loop when accessing /login (using generator-angular-fullstack v3.7.5) #152
Comments
Hi @robertjd , thanks for your response. It looks like it wasn't related to #147, but is now working after modifying a few lines of code in the The first issue seemed to be that I inited the Stormpath middleware after app.use(ExpressStormpath.init(app,{
website: true,
web: {
spaRoot: path.join(__dirname, '..','client','index.html')
}
})); to the snippet from the app.use(ExpressStormpath.init(app,{
web: {
produces: ['application/json'],
spa: {
enabled: true,
view: app.get('appPath')
}
}
})); I also had to modify app.route('/*')
.get((req, res) => {
res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
}); to: app.route('/*')
.get((req, res) => {
res.sendFile(path.resolve(app.get('appPath')));
}); Everything is now running smoothly. |
rondanal
changed the title
Infinite loop when accessing /login
Infinite loop when accessing /login (using generator-angular-fullstack v3.7.5)
Jun 14, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
Apologies for my ignorance here - I'm trying to follow the AngularJS + Yeoman Guide and am experiencing an infinite loop when building the login form section.
I created a new project using generator-angular-fullstack v3.7.5
The generated
login.js
file for the login route is:login.controller.js
:app.js
:I see that these differ from the
dashboard-app
example code, which doesn't use the component sytnax.When I run the project and visit `/login' I see an infinite loop in the browser. I've followed all of the steps up to https://docs.stormpath.com/angularjs/guide/register.html#create-the-registration-form verbatim.
Does the most recent version of
stormpath-sdk-angularjs
support the component style generated here (bygenerator-angular-fullstack
v3.7.5)? If not, is there a easy way to fix the generated code, or would I need to use an older version ofgenerator-angular-fullstack
(the tutorial does not specify a version as far as I can tell)?Thanks
The text was updated successfully, but these errors were encountered: