# Embed okta widget in my angular component

**URL:** <https://devforum.okta.com/t/embed-okta-widget-in-my-angular-component/22563>\
**Category:** Questions\
**Created:** [November 25, 2022, 3:22pm UTC](https://devforum.okta.com/t/embed-okta-widget-in-my-angular-component/22563 "2022-11-25T15:22:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robindesbois](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@robindesbois](https://devforum.okta.com/u/robindesbois)\
**Post date:** [November 25, 2022, 3:22pm UTC](https://devforum.okta.com/t/embed-okta-widget-in-my-angular-component/22563/1 "2022-11-25T15:22:11Z")

</div>

I would like to embed the okta widget in an angular component.  
At the moment, I use the signInWithRedirect() method and I’m redirected to [https://my-domaine.okta.com/oauth2/default/v1/authorize](https://my-domaine.okta.com/oauth2/default/v1/authorize), and it works fine.  
But I don’t know wich method to use to generate the widget into a

 in my angular html component.  
Is it possible ? Wich method can I use ?  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [November 25, 2022, 4:47pm UTC](https://devforum.okta.com/t/embed-okta-widget-in-my-angular-component/22563/2 "2022-11-25T16:47:10Z")

</div>

Maybe take a look at our Angular sample (using our Angular SDK) which uses an embedded widget for login: [samples-js-angular/login.component.ts at master · okta/samples-js-angular · GitHub](https://github.com/okta/samples-js-angular/blob/master/custom-login/src/app/login/login.component.ts)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [November 28, 2022, 9:09am UTC](https://devforum.okta.com/t/embed-okta-widget-in-my-angular-component/22563/3 "2022-11-28T09:09:18Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
