this.service.function.subscribe(arg => this.property = arg);
      Typescript language logo
      your recipe card header background

      Angular Subscribe

      Angular TypeScript Recipes

      This code subscribes to the "property" event on the "service" object and sets the "this.property" property to the received argument.

      Library: angular

      Shortcut: angular.subscribe

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.