Can’t bind to ‘routerLink’ since it isn’t a known property

You need to add RouterModule to imports of every @NgModule() where components use any component or directive from (in this case routerLink and <router-outlet>. declarations: [] is to make components, directives, pipes, known inside the current module. exports: [] is to make components, directives, pipes, available to importing modules. What is added to declarations only … Read more

Local workspace file (‘angular.json’) could not be found. But same code works in another computer

it’s probably because your global @angular/ cli, project @angular/cli version or @angular/compiler-cli doesn’t match. Debugging this first of all run to check the global version of your angular, then compare the version with your angular project versions. if it matches with them or no. If something doesn’t match, update or downgrade it. For example to … Read more

Cannot find module ‘@angular/compiler’

Try to delete that “angular/cli”: “1.0.0-beta.28.3”, in the devDependencies it is useless , and add instead of it “@angular/compiler-cli”: “^2.3.1”, (since it is the current version, else add it by npm i –save-dev @angular/compiler-cli ), then in your root app folder run those commands: rm -r node_modules (or delete your node_modules folder manually) npm cache clean (npm > v5 add –force so: npm cache clean –force) npm install

Angular 2.0 and Modal Dialog

Angular 2 and up Bootstrap css (animation is preserved) NO JQuery NO bootstrap.js Supports custom modal content (just like accepted answer) Recently added support for multiple modals on top of each other. ` To show the backdrop, you’ll need something like this CSS: The example now allows for multiple modals at the same time. (see … Read more