Angular 1 vs Angular 2

Hi there
I’m pretty new to Angular and i’ve heard about all the controversy surrounding the breaking changes going from Angular 1 to Angular 2.

I found some sources that helped me understand the core concepts of Angular 2.
https://auth0.com/blog/angular-2-series-part-3-using-http/
In Angular 1.x we can transform requests globally in the application’s config.

.config(function($httpProvider) {
$httpProvider.defaults.transformRequest = function(data) {
return JSON.stringify({name: “Ryan”});
}
});

Whereas in Angular 2, we would extend the base request optiond

class MyOptions extends BaseRequestOptions {
body: string = JSON.stringify({name: “Ryan”});
}

bootstrap(App, [HTTP_PROVIDERS, provide(RequestOptions, {useClass:MyOptions})]);

Hope this was of help! Feel free to provide feedback!

@iggie We’re super focused on React and React-Native at ShakaCode. Maybe a community member will comment.