<?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: mansoorlive</title>
    <description>The latest articles on DEV Community by mansoorlive (@mansoorlive).</description>
    <link>https://dev.to/mansoorlive</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%2F955727%2F5c8e12a0-3b2f-426f-8f49-5edc18b4dc99.png</url>
      <title>DEV Community: mansoorlive</title>
      <link>https://dev.to/mansoorlive</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mansoorlive"/>
    <language>en</language>
    <item>
      <title>Angular Not Redirecting After Getting Auth Token</title>
      <dc:creator>mansoorlive</dc:creator>
      <pubDate>Wed, 26 Oct 2022 06:59:41 +0000</pubDate>
      <link>https://dev.to/mansoorlive/angular-not-redirecting-after-getting-auth-token-2nd</link>
      <guid>https://dev.to/mansoorlive/angular-not-redirecting-after-getting-auth-token-2nd</guid>
      <description>&lt;p&gt;Dear Experts Angular, Please See The Code Below And Tell Me Is It Correct or Wrong ?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  onFormSubmit() {
    this.isLoadingResults = true;
    this.authService.login(this.loginForm.value).subscribe(data =&amp;gt; {
        this.isLoadingResults = false;
        this.router.navigate(['/secure'],{ replaceUrl: true }).then(_ =&amp;gt; console.log('You are secure now!'));
      }, (err: any) =&amp;gt; {
        console.log(err);
        this.isLoadingResults = false;
      });    
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>angular</category>
    </item>
  </channel>
</rss>
