how to fix #Angular error after update:
- open tsconfig.json
- under compilerOptions change "strict" to false
- re-compile your project
how to fix #Angular error after update:
updating #Angular can be tricky... but using update.angular.io can make it much easier.
Just select your current version and desired updated version and you will get detailed step by step tutorial how to perform update ⭐️⭐️⭐️⭐️⭐️
#Angular RouterLink not working?
<a [routerLink]="['/dashboard/profile/']">Profile</a>
If routerLink does not work, here is easy fix for it.
Just import RuterModule
to you app.modules.ts or to module responsible for a component where you are using [routerLink]
import {RouterModule} from '@angular/router';
@NgModule({
declarations: [
YourComponent
],
imports: [
//...
RouterModule
],
exports: []
})
Error in #Angular can't bind to formGroup since it isn't a known property of form
Solution: Import ReactiveFormsModule
@NgModule({
declarations: [],
imports: [ReactiveFormsModule],
exports: []
})
#Angular error:
Can't bind to 'routerLink' since it isn't a known property
solution:
include RouterModule
to your module
import {RouterModule} from "@angular/router";
@NgModule({
declarations: [
//...
],
imports: [
//...
// add RouterModule to your imports
RouterModule
],
exports: [
],
})