0

html code

<div class="section-layout text-center"> <a [routerLink]="[pricing]" class="btn btn-primary my-5">Upgrade</a> </div> 

hi ,when i try to login and its this upgrade button its navigating me to (https://dev.socialtools.me/Plans-and-Pricing-Application-on-Facebook) this url and letter if i refresh the page and try to click on this button its giving me an error

Error: Cannot match any routes. URL Segment: 'undefined' https://dev.socialtools.me/undefined)

1
  • pricing is a variable. Do you want to use the variable or route to /pricing? Commented Jan 29, 2021 at 6:36

1 Answer 1

1

Assuming pricing is route not variable

[routerLink]="[/'pricing']" 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.