title: Expected identifier or keyword at the end of the expression (in get API)
body: <p>PLease Somebody Help. </p>
  
  <p>Got Struck in calling the get API. </p>
  
  <p>Getting error as unexpected token..</p>
  
  <p>What the mistake have I made.. </p>
  
  <p>Below is my Service Method:</p>
  
  <pre><code> get_tq() {
  let headers = new Headers();
  headers.append('Content-Type', 'application/json');
  // this.createAuthorizationHeader(headers);
  return this.http.get(this.base_url + "learnchapter/get", { headers: headers })
    .map((res: Response) =&gt; res.json().Results||[]);
  </code></pre>
  
  <p>}</p>
  
  <p>And Components.ts Method:  </p>
  
  <pre><code>    this.service.get_tq().subscribe(data =&gt; {
  
  
    let objResponse:tResponse =data;
    if (objResponse.Code==200)
           {
            this.profile = data.Results;
  
    console.log(this.profile);
    this.profile.forEach((value, key) =&gt; {
      this.profileInfo.push(value);
    });   }
  
           else if (objResponse.Code==403)
                  {
  
               //     $('#m1Modal').modal('hide');
                    this.toastr.error("Record already exists");
  
                  }
  
  });
  </code></pre>
  
  <p>And Html code:</p>
  
  <pre><code>  &lt;ng-container *ngFor="let profiles_Result of profileInfo"&gt;
  
            &lt;tr &gt;
  
                &lt;td&gt;{{profiles_Result.}}&lt;/td&gt;
                &lt;td&gt;{{profiles_Result.chaptername}}&lt;/td&gt;
                &lt;td&gt;{{profiles_Result.parentflag}}&lt;/td&gt;
                &lt;td&gt;{{profiles_Result.teacherflag}}&lt;/td&gt;
  
                     &lt;/tr&gt;
  </code></pre>