<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lalarukh khan</title>
    <description>The latest articles on DEV Community by Lalarukh khan (@lalarukh).</description>
    <link>https://dev.to/lalarukh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F867496%2Ff036de3a-fcc1-41fd-b692-a38dcf9bc04e.png</url>
      <title>DEV Community: Lalarukh khan</title>
      <link>https://dev.to/lalarukh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lalarukh"/>
    <language>en</language>
    <item>
      <title>HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: 'Unknown Error', url: 'my_url', ok: false, …}</title>
      <dc:creator>Lalarukh khan</dc:creator>
      <pubDate>Mon, 12 Dec 2022 13:08:05 +0000</pubDate>
      <link>https://dev.to/lalarukh/httperrorresponse-headers-httpheaders-status-0-statustext-unknown-error-url-myurl-ok-false--1cgg</link>
      <guid>https://dev.to/lalarukh/httperrorresponse-headers-httpheaders-status-0-statustext-unknown-error-url-myurl-ok-false--1cgg</guid>
      <description>&lt;p&gt;Hey there, &lt;br&gt;
I'm trying to get response from POST_API. But I can't get that inside my component.ts&lt;br&gt;
Here's my code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;roomtypes: any;
  errorMessage: String = "";
  ngOnInit(): void {
    this.http.post&amp;lt;any&amp;gt;('https://backend.revroo.io/api/v1/booking-engine/get-hotels', { title: 'Angular POST Request Example' }).subscribe({
        next: roomtype =&amp;gt; {
            this.roomtypes = roomtype.id;
        },
        error: error =&amp;gt; {
            this.errorMessage = error.message;
            console.error('There was an error!', error);
        }
    })
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2j8hikt1tx9py31yprg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2j8hikt1tx9py31yprg.png" alt="Image description" width="800" height="169"&gt;&lt;/a&gt;&lt;br&gt;
Seeking Help!&lt;/p&gt;

</description>
      <category>programming</category>
    </item>
    <item>
      <title>Show specific values of languagetool API on specific word on Textarea</title>
      <dc:creator>Lalarukh khan</dc:creator>
      <pubDate>Wed, 25 May 2022 05:33:28 +0000</pubDate>
      <link>https://dev.to/lalarukh/show-specific-values-of-languagetool-api-on-specific-word-on-textarea-555a</link>
      <guid>https://dev.to/lalarukh/show-specific-values-of-languagetool-api-on-specific-word-on-textarea-555a</guid>
      <description>&lt;p&gt;Hi,&lt;br&gt;
I’m using Languagetool API and trying to make a grammar &amp;amp; spellchecker by using PHP. I can highlight or color the first letter of wrong word. The problem is that I’m getting all suggestion values from API json array once. I want to show specific array replacement based on ‘offset’ parameter below specific word. Not al together.&lt;br&gt;
API has replacement values according to offset parameter e.g. 0, 3, 6&lt;br&gt;
By this loop I’m calling all values from inside matches → replacements → values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;foreach ($json2['matches'] as $key=&amp;gt;$val) {       //getting inside matches all arrays
      foreach ($val['replacements'] as $new=&amp;gt;$qwe) {     //all replacement arrays
            echo '&amp;lt;input type="button" value="'.$qwe['value'].'"&amp;gt;';    //all values
      }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how Its showing on my context-menu.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mWa4jw9n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7wkqnp919ijd19tr4q0.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mWa4jw9n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7wkqnp919ijd19tr4q0.PNG" alt="Image description" width="857" height="592"&gt;&lt;/a&gt;&lt;br&gt;
I want to get the wrong word from textarea by its index position and show appropriately only its specific replacement array.&lt;br&gt;
Seeking Guidance.&lt;br&gt;
My JSON File:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qPxJ_xLR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgw1n53wcfkmeekbv14y.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qPxJ_xLR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hgw1n53wcfkmeekbv14y.PNG" alt="Image description" width="880" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
