okta-developer-docs icon indicating copy to clipboard operation
okta-developer-docs copied to clipboard

[okta_angular_auth_js] Missing argument in code snippet

Open shuowu-okta opened this issue 5 years ago • 3 comments

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.

shuowu-okta avatar Feb 21 '20 17:02 shuowu-okta

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

kartikcallingkartik avatar Jul 15 '20 09:07 kartikcallingkartik

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

dogeared avatar Jan 12 '21 17:01 dogeared

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

brianduffield-okta avatar Oct 11 '23 18:10 brianduffield-okta

Due to age, the following three Classic guides have been removed from the repo:

Sign-in to SPA with an Embedded Widget (Angular, React, and VuePress versions). Closing this issue.

brianduffield-okta avatar Sep 23 '24 13:09 brianduffield-okta