title: Angular call API when data is updated
body: <pre><code>   private imgs;
  
  if (typeof this.imgs === &quot;undefined&quot;) {
        this.imgs = await this.api.createData(
          this.currentData,
          configuartion
        );
      }
  </code></pre>
  <p>Hi, I have code above it works quite fine unless I update my <code>currentData</code> and want to call <code>this.api.createData(this.currentData,configuration)</code> again. How can I do it? is there rxjs I can use there to detect changes or I can do it some other way?</p>
  <p>updated:</p>
  <p><code>this.imgs</code> contains array of objects i want to call api again if array is updated</p>