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

Issues in Groceries guide(Angular) #276

Open
NickIliev opened this issue Oct 26, 2017 · 1 comment
Open

Issues in Groceries guide(Angular) #276

NickIliev opened this issue Oct 26, 2017 · 1 comment

Comments

@NickIliev
Copy link
Contributor

From @jvdonk on October 26, 2017 13:20

In chapter 3.3, when moving the login.html template out to a separate file, the tutorial points to the app/pages/login/login.html file. But that's not where the AppComponent is looking for: ./login.html.

So, the to proceed with the tutorial, one must create a new app/login.html file and paste the contents of the template to proceed with the tutorial.

In chapter 3.4, the signUp functionality is changed in the AppComponent but there is no mentioning of updating the login.html template to point to the newly created signUp function.

So, the tap event of the second button should be changed to: (tap)="signUp()" instead of (tap)="toggleDisplay()" to be able to use the new signUp function and proceed with the tutorial

BTW, thank you for the excellent easy startup guides, appreciated!

Copied from original issue: NativeScript/nativescript-angular#1059

@ghost
Copy link

ghost commented Dec 21, 2017

Heyy there,
I am following the same guide for creating a Groceries App.
The Compiler keeps tagging "this.toggleDisplay()" under

signUp() { this.userService.register(this.user) .subscribe( () => { alert("Your account was successfully created."); this.toggleDisplay(); }, () => alert("Unfortunately we were unable to create your account.") ); }
Due to this, there is a run time error in my application.
I tried creating a new login.html page like @jvdonk had suggested. It didnt work for me.
I also tried switching the second button 'tap' to SignUp.
Still shows the same error.
Any ideas on how to proceed??

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

No branches or pull requests

1 participant