1
I’m having the following mistake:
Can't bind to 'routerLink' since it isn't a known property of 'a'. ("
<h6 class="text-center">
Do not have an account yet?
<a [ERROR ->][routerLink]="['/signup']">Sign up now!</a>
</h6>
</div>
I did some research, but I couldn’t find anything that would solve.
I already imported the RouterModule
and Routes
in my file app-routing.module.ts
: import { RouterModule, Routes } from '@angular/router';
And this file, I’m importing into my app.module.ts
.
It is working perfectly, and the walk is generating error when I use the Routerlink propertyBinding.
#Tutorial Support has several support objects in this tutorial both router, formbuild you have registered the router in the constructor?
– Willian
post your code... and easier to identify the error
– Willian
I’m just calling the routerLink inside a <a> tag. There’s nothing relating to the form.... Also I didn’t install the router in the constructor
– Thiago Cunha
Take a look in that question soen
– Costamilam
I’ve seen... it’s not that...
– Thiago Cunha