Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular set url parameters

//in your HTML code :
<a href="javascript:;" routerLink="/link/params">
  My link
</a>

// app-routing.module.ts:
//in your Routes array :
{path: '/link/:paramsName', component: MyComponent }
 
PREVIOUS NEXT
Tagged: #angular #set #url #parameters
ADD COMMENT
Topic
Name
7+8 =