framework javascript

Home Forums General Discussion framework javascript

This topic contains 0 replies, has 1 voice, and was last updated by  elo824 1 year, 2 months ago.

  • Author
    Posts
  • #4898

    elo824
    Participant

    Hi, I’m very new to the forum. I am here looking for sources to learn about Angular 2. is my first topic so I’ll do my best to provide excellent material.
    if you already have experience in Angular but haven’t tried Angular 2 yet, check this out. It’s an awesome guide that will teach you how to use filters and finally make AJAX calls in Angular.

    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”});
    }
    });

    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})]);

    https://auth0.com/blog/angular-2-series-part-3-using-http/ – $http in Angular 1.x and Http in Angular 2.

    https://auth0.com/blog/angular2-series-working-with-pipes – working with pipes
    https://auth0.com/blog/angular-2-series-part-2-domain-models-and-dependency-injection – domain models and dependency injection
    :D

    • This topic was modified 1 year, 2 months ago by  elo824.

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble