Open Closed

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


User avatar
0
smwasimraja@gmail.com created

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 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team 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 created

    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 created

    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 v9.1.0-preview. Updated on November 19, 2024, 12:56