खुला हुआ बंद किया हुआ

Redirect to another page instead of popup form using Angular #6227


User avatar
0
smwasimraja@gmail.com बनाया था

Appreciate if anyone provide angular sample codes for redirecting to new page instead of popup. For e.g. when I click "Add New", ABP opens up popup window, but I need to redirect to new page where I will have more options while adding new entity.

  • ABP Framework version: v7.4
  • UI Type: Angular

Thanks for the support.


3 उत्तर (ओं)
  • User Avatar
    0
    Anjali_Musmade बनाया था
    सहायता दल Support Team Member

    Hello,

    To navigate from one page to another, you can use the below command

    window.location.href = './newpage';
    
  • User Avatar
    0
    yushafizalyusri@gmail.com बनाया था

    Hi, you can use Angular Routerlink to navigate to another page.

    To create: <a [routerLink]="['/user/create']"> link to create user component </a>

    To edit: <a [routerLink]="['/user/edit']" [queryParams]="{id: yourId}"> link to edit user component </a>

    Make sure to declare your routes.

    Refer

  • User Avatar
    0
    smwasimraja@gmail.com बनाया था

    Hi, you can use Angular Routerlink to navigate to another page.

    To create: <a [routerLink]="['/user/create']"> link to create user component </a>

    To edit: <a [routerLink]="['/user/edit']" [queryParams]="{id: yourId}"> link to edit user component </a>

    Make sure to declare your routes.

    Refer

    Thanks yushafizalyusri@gmail.com

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11