Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

auxilary route

//in app-routing.module.ts-
{path:'showMessage' , component:WelcomeComponent , outlet:'showMessage'},

//in html-
<li><a [routerLink]="[{outlets:{showMessage : ['showMessage']}}]"  >Show Messages</a></li>


<div class="col-md-3" >
        <router-outlet name="showMessage" ></router-outlet>
</div>
      

//to close auxilary route-
close(){
    this.route.navigate([{outlets:{showMessage:null}}]);
}

//to navigate to auxilary route through ts-
click(){
    this.route.navigate([{outlets:{showMessage:['showMessage']}}]);
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: add font in tailwindcss 
Typescript :: angular get current date yyyy-mm-dd 
Typescript :: add module tslib 
Typescript :: angular refresh page without reloading 
Typescript :: stripe typescript 
Typescript :: insert value to the top of array in angular 
Typescript :: Access rights tab layout in res.users is changed to tree view. odoo 
Typescript :: Can I bypass the Oustanding Receipts / Outstanding Payments functionality at v14? odoo 
Typescript :: skip specific test in jasmine 
Typescript :: ionic modalcontroller No component factory found for Did you add it to 
Typescript :: event typescript 
Typescript :: Which two import statements will allow for the import of the HashMap class? 
Typescript :: how to print the results of a command in a fil in linux 
Typescript :: What types of troop advancements were involved, and why were both needed in dday 
Typescript :: check if file.properties is exits android 
Typescript :: email validation pattern angular 
Typescript :: ionic alert controller handler not dimiss 
Typescript :: how to read excel file with multiple sheets in python 
Typescript :: typescript code region 
Typescript :: sum of digits with reduce function 
Typescript :: how to find a combination of all elements in a python list 
Typescript :: a href without redirecting 
Typescript :: stored procedure that selects in to a table 
Typescript :: typescript if then shorthand 
Typescript :: use map with filter in react components from arrays of data 
Typescript :: list of continents 
Typescript :: angular get url params 
Typescript :: python find the number of elements in a list 
Typescript :: angular output send click event to parent 
Typescript :: typescript tuples 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =