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

Angular not working in Module 5 #30

Open
kaym0 opened this issue Aug 5, 2016 · 2 comments
Open

Angular not working in Module 5 #30

kaym0 opened this issue Aug 5, 2016 · 2 comments

Comments

@kaym0
Copy link

kaym0 commented Aug 5, 2016

No description provided.

@gauravb8
Copy link

gauravb8 commented Dec 2, 2016

Hi,

I ran into this issue too. Actually, the angular is working just fine. When you open the homepage(localhost:3000/#/), you aren't seeing any posts because there are none in the database. In order to create posts you have to register as a new user first.

Now here lies the problem. The register link doesn't work and you can't login either without signing up first. This issue can be resolved by editing an incorrect reference in the HTML for the homepage(index.html).In line 17, where the page to be redirected to when the Register link is clicked is specified, it points to a page called signup which doesn't exist. The code for the signup page is instead present in register.html.

So, simply replace #/signup by #/register. This will allow you to create a new user in the database and create tweets(or cheeps). Once created and stored in the database, these posts will be shown on the homepage even when you're not logged in.

Hope this helps.

Thanks

@adaymuhajier
Copy link

adaymuhajier commented Dec 9, 2016

hmmm, @gauravb8 still doesn't seem to work, nothing happens when i click login or register. when i click register, it redirects me to http://localhost:3000/#!/#%2Fregister weird

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