framework javascript

Home Forums General Discussion framework javascript

Viewing 0 reply threads
  • 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 3 years, 4 months ago by elo824.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Share
Tweet
Share
Pin