Igor Simic
Edited 1 year ago

how to fix #Angular error after update:    

  • open tsconfig.json
  • under compilerOptions change "strict" to false
  • re-compile your project
Stefan Baden
1 year 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
1 year ago
Jason Miller
1 year ago
Igor Simic
2 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
2 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 2 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: [
    
  ],
})