Sagar P
Sagar P

Reputation: 1

Error: Cannot match any routes. URL Segment: 'undefined'

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)

Upvotes: 0

Views: 203

Answers (1)

zainhassan
zainhassan

Reputation: 1780

Assuming pricing is route not variable

[routerLink]="[/'pricing']"

Upvotes: 1

Related Questions