0
    
    
        
                    abpfintranet-1 created
                    
                    
                    
                
                Hi In front side we use our own template and menu, so I want to put its "Linked account" menu in our menu. The problem here is that when we click on 'Linked accounts' menu, it shows a modal and does not route to another address. If it was routing, I could use its route but I must show that modal, and I could not see anything in angular code about that menu. So how can I show that 'Linked accouts' modal in my custom template? abp version 5.3.3 ng version 14.0.3
2 Answer(s)
- 
    0It passed 7 days and there is no answer! Why?! 
- 
    1Hello, Sorry for the latency in answering your question. You can do it by injecting OPEN_MY_LINK_USERS_MODALtoken and executing injected function.Usage: import { Component, Inject } from '@angular/core'; import { OPEN_MY_LINK_USERS_MODAL } from '@volo/abp.commercial.ng.ui/config'; @Component({ /*Component Metadata*/ }) export class MyComponent { constructor( @Inject(OPEN_MY_LINK_USERS_MODAL) public openMyLinkUsersModal: () => void ) {} }<!-- My Component Template --> <button class="btn btn-primary" click="openMyLinkUsersModal()"> Open LinkUsersModal </button>
 
                                