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

[okta_angular_auth_js] Missing argument in code snippet #996

Open
shuowu-okta opened this issue Feb 21, 2020 · 3 comments
Open

[okta_angular_auth_js] Missing argument in code snippet #996

shuowu-okta opened this issue Feb 21, 2020 · 3 comments

Comments

@shuowu-okta
Copy link
Contributor

Mandatory argument is missing from app.component.html snippet in Add Routes section.

Warning from angular console:

ERROR in src/app/app.component.html:2:43 - error TS2554: Expected 1 arguments, but got 0.
    
    2 <button *ngIf="!isAuthenticated" (click)="oktaAuth.login()"> Login </button>
                                                ~~~~~~~~~~~~~~~~
    
      src/app/app.component.ts:6:16
        6   templateUrl: './app.component.html',
                         ~~~~~~~~~~~~~~~~~~~~~~
        Error occurs in the template of component AppComponent.
@kartikcallingkartik
Copy link

Hi can you let me know how did you solve this?
I am also getting the same issue.

@dogeared
Copy link
Contributor

Internal tracking link: https://oktainc.atlassian.net/browse/OKTA-360212

@brianduffield-okta
Copy link
Contributor

The applicable code on this old guide is updated. I'll run through this guide shortly and hopefully close the issue.

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

4 participants