<?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: Ashok Kumar</title>
    <description>The latest articles on DEV Community by Ashok Kumar (@kak_mca).</description>
    <link>https://dev.to/kak_mca</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%2F1167696%2F877dedf6-4620-42b0-bd44-c5e13b535c87.jpg</url>
      <title>DEV Community: Ashok Kumar</title>
      <link>https://dev.to/kak_mca</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kak_mca"/>
    <language>en</language>
    <item>
      <title>How to hide controls based on login status</title>
      <dc:creator>Ashok Kumar</dc:creator>
      <pubDate>Fri, 22 Sep 2023 11:39:43 +0000</pubDate>
      <link>https://dev.to/kak_mca/how-to-hide-controls-based-on-login-status-ej9</link>
      <guid>https://dev.to/kak_mca/how-to-hide-controls-based-on-login-status-ej9</guid>
      <description>&lt;p&gt;Below is the GitHub repository for my code.&lt;br&gt;
&lt;a href="https://github.com/ashok-login/DatingAppForAngularDiscussion.git"&gt;https://github.com/ashok-login/DatingAppForAngularDiscussion.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am learning Angular by following one Udemy course. But, I am stuck with one simple issue like below. Can someone help me to resolve the issue.&lt;/p&gt;

&lt;p&gt;Below is the requirement.&lt;/p&gt;

&lt;p&gt;Once after the user is logged in successfully, all the navigation links are working as expected except the Home-page link.&lt;/p&gt;

&lt;p&gt;If the user is logged in, login controls should be removed from the DOM, and navigation links should be shown as shown in the below screenshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UB-GNzW6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6re314rfmfd65j560r6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UB-GNzW6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6re314rfmfd65j560r6.png" alt="Image description" width="788" height="242"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But, once after the successful login, if user clicks on Dating App (Home-page logo) as marked with 1, all the navigation controls are hiding, and login controls are showing as shown in the below screenshot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PzyaNBuC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5n7ooyzn5tvosqf53k4b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PzyaNBuC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5n7ooyzn5tvosqf53k4b.png" alt="Image description" width="786" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can someone help me to resolve this issue!&lt;/p&gt;

&lt;p&gt;Regards,&lt;br&gt;
Ashok Kumar K.&lt;/p&gt;

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