Sharing Top Content from the Angular-sphere.

Identity Server: Upgrade Client to Angular 5 – Eric L. Anderson

  • In the Client App project open the  package.json file and update the version of the  @angular packages to at least the following version, and of course feel free to pin the exact version.
  • Instead of just blindly going package by package and seeing which versions were required I installed the Angular CLI and created a new Angular 5 application and used it as an example of what version I needed.
  • This package deals with ahead-of-time compiling which my sample application uses, but the application I generated using the Angular CLI doesn’t.
  • There was a much new version of the Open ID Connect Client that the Angular application is using so I upgrade it as well to the following version.
  • Now that the package versions are sorted run the following commands from a command prompt to make sure that all the new version are installed and in the proper places.

I have been working a lot on my basics sample project to explore some new client-side frameworks (React and Vue if you are interested). Since I have been away from the Identity Server sample for a while I thought it would be good to see what updates the project might need. It turns out that Angular was the big thing that was out of date. This post is going to cover the changes to get the project updated to Angular 5.

I have been working a lot on my basics sample project to explore some new client-side frameworks (React and Vue if you are interested). Since I have been away from the Identity Server sample for a while I thought it would be good to see what updates the project might need. It turns out that Angular was the big thing that was out of date. This post is going to cover the changes to get the project updated to Angular 5.

In the Client App project open the  package . json file and update the version of the  @ angular packages to at least the following version, and of course feel free to pin the exact version. I don’t just because of the nature of this sample.

“@angular/core” : “^5.0.0” ,

“@angular/forms” : “^5.0.0” ,

“@angular/http” : “^5.0.0” ,

At this point, I tried to run and got an error about the version of  rxjs being used. Instead of just blindly going package by package and seeing which versions were required I installed the Angular CLI and created a new Angular 5 application and used it as an example of what version I needed. Use the following commands if you would like to follow the same process since the current versions have changed by the time you are reading this post.

The above led me to the following version changes.

At this point, I tried running the application again and received the…

Identity Server: Upgrade Client to Angular 5 – Eric L. Anderson

Comments are closed, but trackbacks and pingbacks are open.