<?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: Kamana</title>
    <description>The latest articles on DEV Community by Kamana (@kamanatripathi).</description>
    <link>https://dev.to/kamanatripathi</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%2F204042%2F8a0b3fad-e5f6-47db-ac10-51fb9dee9f09.jpg</url>
      <title>DEV Community: Kamana</title>
      <link>https://dev.to/kamanatripathi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kamanatripathi"/>
    <language>en</language>
    <item>
      <title>Implementation of Vote feature in ionic 4.</title>
      <dc:creator>Kamana</dc:creator>
      <pubDate>Sat, 14 Aug 2021 12:23:56 +0000</pubDate>
      <link>https://dev.to/kamanatripathi/implementation-of-vote-feature-in-ionic-4-1g53</link>
      <guid>https://dev.to/kamanatripathi/implementation-of-vote-feature-in-ionic-4-1g53</guid>
      <description>&lt;p&gt;I'm publishing the first part where I used this feature that was in a chatroom.&lt;br&gt;
Should I explain the code?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Read it on your own risk&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Using Firebase so here, I have used the array chatRef from ts and then we will check if the uid(user id is my user id ) is yes ill &lt;br&gt;
ill type my message and in the next line if the chat message is a poll ill see the poll.&lt;br&gt;
and we have two buttons we have only kept two vote options.&lt;br&gt;
Next is the same if i'm not the user that is the user is another stranger from chatroom, the code is for them.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We will store our user id data at a different place and stranger\s at a collective place. We will see that next time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;ion-content padding&amp;gt;
    &amp;lt;div class="chat" *ngFor= "let chat of chatRef | async"&amp;gt;
        &amp;lt;div class="me" *ngIf = "uid==chat.UserID"&amp;gt;
          {{chat.Message}}
        &amp;lt;div  class="me" *ngIf = "chat.Message =='POLL' "  &amp;gt;
          &amp;lt;h1&amp;gt;{{chat.poll}}&amp;lt;/h1&amp;gt;
          &amp;lt;div&amp;gt; 
            &amp;lt;ion-button  (click)="opinionClick('yes',chat.id)" &amp;gt;{{chat.option1}}:{{chat.countoption1}}&amp;lt;/ion-button&amp;gt;
           &amp;lt;ion-button  (click)="opinionClick('no',chat.id)" &amp;gt;{{chat.option2}} :  {{chat.countoption2}}  &amp;lt;/ion-button&amp;gt; 
         &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="you" *ngIf = "uid!=chat.UserID"&amp;gt;
          &amp;lt;span class="name"&amp;gt;{{chat.Name}}&amp;lt;/span&amp;gt;
         &amp;lt;br&amp;gt; {{chat.Message}}
        &amp;lt;div class="name" *ngIf = "chat.Message =='POLL'" &amp;gt;
          &amp;lt;h1&amp;gt;{{chat.poll}}&amp;lt;/h1&amp;gt;
            &amp;lt;div  &amp;gt; 
             &amp;lt;ion-button  (click)="opinionClick('yes',chat.id)" &amp;gt;{{chat.option1}}: {{chat.countoption1}}&amp;lt;/ion-button&amp;gt;
            &amp;lt;ion-button  (click)="opinionClick('no',chat.id)" &amp;gt;{{chat.option2}}:  {{chat.countoption2}} &amp;lt;/ion-button&amp;gt; 
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/ion-content&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RQLNMyRB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8zj3qgix6kv3djq1rvyb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RQLNMyRB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8zj3qgix6kv3djq1rvyb.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I know I'm bad at selecting the palette.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Aniyooo&lt;/strong&gt; 💕&lt;/p&gt;

</description>
      <category>ionic</category>
      <category>beginners</category>
      <category>angular</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Vote in Chat based Application in Ionic 4. ✨</title>
      <dc:creator>Kamana</dc:creator>
      <pubDate>Wed, 11 Aug 2021 10:06:26 +0000</pubDate>
      <link>https://dev.to/kamanatripathi/vote-in-chat-based-application-in-ionic-4-3l2</link>
      <guid>https://dev.to/kamanatripathi/vote-in-chat-based-application-in-ionic-4-3l2</guid>
      <description>&lt;p&gt;Hey,  &lt;/p&gt;

&lt;p&gt;I thought of writing a blog. &lt;br&gt;
This is my first blog.&lt;br&gt;
The topic that, I'm going to cover is poll (Vote) chat based application in ionic 4.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;My professor asked me why did I add this feature or what is the one feature that stood your app out. I bluntly blurred out the Vote feature. &lt;br&gt;
You'll ask why? Because I have always wanted it in my Applications that I use in daily life.&lt;/p&gt;

&lt;p&gt;Friend 1 : Hey lets go to ABC Café. Friend 2: No, Lets go to DEF Café. ME: Just vote it out guys.. That's when it was clicked oh! why isn't there any feature of vote. Would have made my life easier.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;But when my teacher asked I said, So that we can vote if we want the test or not without you knowing that I want the test or not.&lt;/strong&gt;&lt;br&gt;
So, this project was done by me in my Masters final year program. &lt;br&gt;
Today we will code for UI and further in the next blog(If I remember to write this). I'll add the connectivity with UI + firebase.&lt;/p&gt;

&lt;p&gt;Let me cut this shot if you want to know what is Ionic and what is Angular just head to the official website. (Because no one is going to read the blog).&lt;/p&gt;

&lt;p&gt;Let's go slowly!! See you in my next blog 😉&lt;/p&gt;

</description>
      <category>ionic</category>
      <category>angular</category>
      <category>chat</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
