Integrating Angular 2 with Spring Boot, JWT, and CORS, Part 1
Rich Freedman’s tutorial on getting an Angular (nee Angular 2) application to communicate with a secured Spring Boot backend including code samples and approaches.
Rich Freedman’s tutorial on getting an Angular (nee Angular 2) application to communicate with a secured Spring Boot backend including code samples and approaches.
At Chariot, we've been Tracking the replacement of AngularJs with a from-the-bottom-up rewrite called Angular 2 for over a year and a half now. Let’s look at where the framework stands as it has released RC2 late last week and RC3 today.
There are several projects that have been bringing a reducer-based state store to Angular, namely @ngrx/store by Rob Wormald, and angular-redux/ng2-redux. Both teams are developing APIs in the style of Redux, which is a functional-programming-driven immutable state store, using reducer functions and a dispatching mechanism to handle changes in state. Let’s see how they work.
Well, another ng-conf has come and gone, and this one produced the first official release candidate of Angular 2.0 (RC1). There were tons of things happening here at the conference, and I know I can't give you a complete rundown, but here are a few big highlights. The big release – Angular 2.0.0-RC1 Yep, it's … Read More
Learn how to deal with data as a stream of WebSocket data in Angular 2 – published for RC1 using Node, Express, Angular 2 and RxJs.
Note – I’ve updated this article and created a new github project using angular-cli to test it. Run all tests with ng test after following instructions at https://github.com/krimple/angular2-unittest-samples-rc Testing Components In my last post, I discussed how to write tests in Angular 2 based on the new angular-testing API. We learned how to stand up … Read More
Right now it's hard to find samples of tests against Angular 2 observable Http code for developers in the current beta. Some of the things you have to watch out for are non-obvious. I expect this will improve vastly over time, but for now hopefully you'll get some working code samples from me to get you going. This post will show you how it’s done.
Now that sonambulent-inauguration, properly known as Angular 2.0.0-beta.0, has dropped, let’s see what the public API is shaping up to be. We’ll review how to create a component from the application bootstrap, using the Http API to fetch a JSON object from HTTP, and see how the template API has changed now that we have to use camelCased property names.
Review of major changes coming to Angular with the Angular2 release, which is a bottom-up re-write and has significant differences from and advantages over Angular 1.
What Angular1 brought, Angular2 takes away – for a good reason. No more Promises in ng2! See how observables make Angular2 a reactive, functional platform. We’ll roll up our sleeves and get something practical done with Angular2’s Http service, and we’ll get some data via the new Http
service – it's quite a bit different than the Angular 1 $http
service semantically, but serves the same purpose, but is also more fully featured.