MDL -dialog with angular 4 - angular2-mdl

Usign MDL_dialog from Angular2-mdl and it has stop working after upgrade to angular 4.
Get -Renderer.animate is no longer supported!
Tried to upgrade Angular2 -mdl but cannot install it wiht angular 4.
Any ideas?

Related

how to install different ionic version in different node using nvm

I am using multiple versions of node using nvm to develop my ionic projects. I started with ionic 3 so by default my system installs ionic 3 in every version.Now I want to install the latest ionic cli but cannot do it. I tried the uninstall command to remove ionic 3 but no matter what I try I am not able to remove the ionic 3 from one of my nvm. Please help me to remove it without affecting the other version.

Angular Version Update Not Reflected

I've been following this Angular guide (https://update.angular.io/?l=3&v=8.2-12.0) to upgrade the Angular version of my project from 9 to 10 (12 ultimately) but when I execute ng --version command it still shows 9.1.13.
I have provided links to two images. The first one showing the update from Angular version 9 to 10 and the second showing the current Angular version of the project.
Upgrade Angular Version
Current Angular Version
Anyone know what may be the issue?
If you are running ng --version command outside of your project folder and you have global #angular/cli installed on your machine, so maybe it's normal.
You can have a specific #angular/cli version installed for your project and another global installed on your PC.
Try to run npm i -g #angular/cli#12.2.18 and then run your ng --version
It will install a global #angular/cli#12.2.18 on your PC. No matter on witch folder you are.

I am getting error 800A03F6- Angular Code

I have installed Node JS and tried running angular with both the LTS and the Latest versions of NodeJS. I have installed angular too in the cmd. But whenever I am trying to run angular codes or trying to cheek the version of Angular. I am getting this error.
enter image description here

Why does my angular 8 project does not start after install angular 10 cli?

I was working on anagular 8 project on my computer. But now need to install angular 10 t run another project.
So I have installed new version as globally: npm install -g #angular/cli
And the new angular 10 project works now, but angular 8 project does not start. It throws an error while starting.
An unhandled exception occurred: Cannot find module
'#angular-devkit/build-angular/package.json' Require stack:
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\node_modules#angular-devkit\architect\node\node-modules-architect-host.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\node_modules#angular-devkit\architect\node\index.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\models\architect-command.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\commands\serve-impl.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\node_modules#angular-devkit\schematics\tools\export-ref.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\node_modules#angular-devkit\schematics\tools\index.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\utilities\json-schema.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\models\command-runner.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\lib\cli\index.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\lib\init.js
C:\Users\Mm\AppData\Roaming\npm\node_modules#angular\cli\bin\ng See "C:\Users\Mm\AppData\Local\Temp\ng-mhNKKl\angular-errors.log" for
further details.
My system versions are:
npm: '6.14.6'
Node.js v12.18.3
Angular CLI: 10.0.8
use this command in cmd
npm install --save-dev #angular-devkit/build-angular
Try this also
npm update
You should not upgrade angular directly to version 10, if you are behind several versions. In your case you are at version 8 but you are going to upgrade to version 10.
In such scenario you have to upgrade to version 9 before 10.
You can find official upgrading guide docs for the same here.

How to downgrade Angular from 5 to 4 in Jhipster 4.13.3

I am using jhipster 4.13.3. When create a gateway, it have 2 choices of Angular version: 5 or 1.x, but I want to use Angular 4.
How can I change the angular version in this version of jhipster?
No easy way if you stay in 4.13.3 as some code has changed, Angular 5 was added in 4.12.0 so a workaround is to install 4.11.1: yarn global add generator-jhipster#4.11.1, generate your gateway and never upgrade this project.

Resources