Igor Simic
Edited 2 years ago

how to fix #Angular error after update:    

  • open tsconfig.json
  • under compilerOptions change "strict" to false
  • re-compile your project
Stefan Baden
2 years ago

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 ⭐️⭐️⭐️⭐️⭐️

Igor Simic
3 years ago
Vizenzo Caponera
3 years ago
Jason Miller
3 years ago
Igor Simic
3 years ago

#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: []
})
                  
Stefan Baden
3 years ago

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: []
})
                  

Igor Simic
Edited 3 years ago

#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: [
    
  ],
})