okta-developer-docs
okta-developer-docs copied to clipboard
[okta_angular_auth_js] Missing argument in code snippet
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.
Hi can you let me know how did you solve this? I am also getting the same issue.
Internal tracking link: https://oktainc.atlassian.net/browse/OKTA-360212
The applicable code on this old guide is updated. I'll run through this guide shortly and hopefully close the issue.
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.