<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="56079" data-post-id="56079">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="herdibintang" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  herdibintang
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Ah thank you very much.</p>
<p>What i want is something like <a href="http://todomvc.com" rel="noopener nofollow ugc">TodoMVC</a> but <strong>using HTML generated by Phoenix</strong>. Using Jquery i can use <code>append</code> to insert an element, but i don’t know how to do it using Vuejs.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56079" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-56079" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56079"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="56080" data-post-id="56080">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="acrolink" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/120/8985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  acrolink
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The site you mentioned already have such a thing written in VueJS.. There should be an object holding all the todos with a for each like rendering for every todo (e.g. li). You append new todo to the todos object and that’s it. Or post a new todo to the back-end and refresh the list by a subsequent api call (to index action).</p>
<p>VueJS supports also Server side rendering, yet I have not tried it yet.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56080" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-56080" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56080"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="56084" data-post-id="56084">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="herdibintang" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  herdibintang
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="acrolink" data-post="13" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<p>The site you mentioned already have such a thing written in VueJS.. There should be an object holding all the todos with a for each like rendering for every todo (e.g. li). You append new todo to the todos object and that’s it. Or post a new todo to the back-end and refresh the list by a subsequent api call (to index action).</p>
</blockquote>
</aside>
<p>But the HTML file is already written using Vuejs syntax in the first place. What i want is <strong>manipulate HTML file generated by Phoenix</strong>. Just like when you can manipulate it with Jquery but this time with Vuejs.</p>
<aside class="quote no-group" data-username="acrolink" data-post="13" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<p>VueJS supports also Server side rendering, yet I have not tried it yet.</p>
</blockquote>
</aside>
<p>I’m sorry but what is the relation between the one i want to Server side rendering?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56084" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-56084" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56084"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="56092" data-post-id="56092">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="acrolink" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/120/8985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  acrolink
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="herdibintang" data-post="14" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/96bed5/48.png" class="avatar"> herdibintang:</div>
<blockquote>
<p>Just like when you can manipulate it with Jquery but this time with Vuejs.</p>
</blockquote>
</aside>
<p>You can do that. You can manipulate any html file with VueJS without using the template tag. Look at this: <a href="https://jsfiddle.net/pu8pp62v/3/" rel="noopener nofollow ugc">https://jsfiddle.net/pu8pp62v/3/</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56092" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-56092" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56092"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="56093" data-post-id="56093">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="amnu3387" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  amnu3387
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I think Vue works in a different way than what you’re trying to do, you define “templates” and “components” and vue only interacts with the contents of these components, it has no knowledge of the external or involving html, beyond the root mounting element.</p>
<p>If you just intend to bind a “value” you get from your controller into a vue component, then you can do something like this: <a href="https://jsfiddle.net/keL13yzk/1/" rel="noopener nofollow ugc">https://jsfiddle.net/keL13yzk/1/</a><br>
(you’ll probably need to render the value raw so it doesn’t get escaped by phoenix)<br>
So that the “list” is started with the values you got from the controller.</p>
<p>You’ll still need to create your template interactions and so on in vue to have the interactivity, so you’ll need to extend that a bit more.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56093" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-56093" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56093"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="56094" data-post-id="56094">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="peerreynders" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/peerreynders/120/5826_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  peerreynders
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="herdibintang" data-post="14" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/96bed5/48.png" class="avatar"> herdibintang:</div>
<blockquote>
<p>What i want is manipulate HTML file generated by Phoenix.</p>
</blockquote>
</aside>
<p>What do you find so compelling about this particular approach?</p>
<ul>
<li>You have to maintain two distinct implementations of how a list item is rendered that have to be kept in sync, one with EEx on the server side, another with jQuery in the browser.</li>
<li>The jQuery functionality still only works if the JavaScript is enabled in the browser and jQuery appended elements are still “JavaScript rendered”.</li>
<li>Because jQuery manipulates the browser’s DOM <strong>directly</strong> you have to carefully consider the approach you take when you manipulate the DOM - some approaches are quick and clean, while others are sluggish and glitchy. With Vue.js it’s <a href="https://stackoverflow.com/questions/44238139/why-is-vue-js-using-a-vdom#answer-44239732" rel="noopener nofollow ugc">VDOM</a>’s job to figure out the best way to update the DOM so it’s one less thing to worry about.</li>
</ul>
<p>Now if it’s <a href="https://developer.mozilla.org/en-US/docs/Glossary/Progressive_Enhancement" rel="noopener nofollow ugc">progressive enhancement</a> you’re after then it’s possible to delivery base HTML to the browser and <a href="https://codepen.io/ebinion/pen/yOqeez" rel="noopener nofollow ugc">have Vue.js components replace it</a> if JavaScript is enabled. Unfortunately that would still mean that you have two ways of doing the same thing. Note that progressive enhancement is different from a <a href="https://developers.google.com/web/progressive-web-apps/checklist" rel="noopener nofollow ugc">progressive web app</a>.</p>
<p>I personally like <a href="https://vuejs.org/v2/guide/single-file-components.html" rel="noopener nofollow ugc">Vue.js 2 Single File Components</a> - the markup and the code that manipulates it are in the same place (whether the styles belong there is a separate issue), keeping it nicely compartmentalized. Code organization and compartmentalization takes a lot more discipline in jQuery based projects; unfortunately in many cases things are often not as well separated (and therefore decoupled) as they should be.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56094" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-56094" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56094"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="56103" data-post-id="56103">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="herdibintang" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  herdibintang
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="acrolink" data-post="15" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<p>You can do that. You can manipulate any html file with VueJS without using the template tag. Look at this: <a href="https://jsfiddle.net/pu8pp62v/3/" rel="noopener nofollow ugc">https://jsfiddle.net/pu8pp62v/3/</a></p>
</blockquote>
</aside>
<p>Yeah but you can’t do this if the html file is generated by Phoenix right?</p>
<aside class="quote no-group" data-username="amnu3387" data-post="16" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/48.png" class="avatar"> amnu3387:</div>
<blockquote>
<p>I think Vue works in a different way than what you’re trying to do</p>
</blockquote>
</aside>
<p>You’re right.<br>
I read some articles that suggests to learn Vuejs after learning Jquery. Because of that i thought you can do things in Vuejs the same way you can do things in Jquery.[quote=“peerreynders, post:17, topic:9185”]<br>
What do you find so compelling about this particular approach?<br>
[/quote]<br>
Hello. Thank you your reply is rich of references!<br>
I just want to add interactivity to Phoenix. But splitting Vuejs and Phoenix (as API server) will do a lot of work.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56103" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-56103" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56103"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="56106" data-post-id="56106">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="acrolink" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/120/8985_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  acrolink
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="herdibintang" data-post="20" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/96bed5/48.png" class="avatar"> herdibintang:</div>
<blockquote>
<p>But splitting Vuejs and Phoenix (as API server) will do a lot of work.</p>
</blockquote>
</aside>
<p>If you have experience with JS frameworks like Angular or React and if you have some general programming experience, believe me it will not take you more than 3 days to learn it all and create super interactive application with <code>Phoenix</code> in the back-end and <code>VueJS</code> on the front-end. 3 week ago I didn’t even know about <code>VueJS</code> at all <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56106" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-56106" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56106"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
    <div class="postbit" id="56107" data-post-id="56107">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="peerreynders" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/peerreynders/120/5826_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  peerreynders
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="herdibintang" data-post="20" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/h/96bed5/48.png" class="avatar"> herdibintang:</div>
<blockquote>
<p>But splitting Vuejs and Phoenix (as API server) will do a lot of work.</p>
</blockquote>
</aside>
<p>You may be underestimating the work of the jQuery version. After you append that item to the list in the browser you still have to make an AJAX call to insert that item into the database. So most likely you are going to be building an API anyway. So in fact a separate Vue.js frontend with a Phoenix API could be a much cleaner solution.</p>
<aside class="quote no-group">
<blockquote>
<p>Because of that i thought you can do things in Vuejs the same way you can do things in Jquery.</p>
</blockquote>
</aside>
<p>I think the idea that was being conveyed is that Vue.js can be gradually introduced into an existing web site that already used jQuery - i.e. it isn’t necessary to switch to Vue.js all at once.</p>
<p>Have you had a look at <a href="https://scotch.io/bar-talk/vuejs-vs-jquery-use-cases-and-comparison-with-examples" rel="noopener nofollow ugc">Vue.js vs jQuery: Use Cases and Comparison with Examples</a> yet?</p>
<p>Some other articles:<br>
<a href="https://medium.freecodecamp.org/vue-js-introduction-for-people-who-know-just-enough-jquery-to-get-by-eab5aa193d77" rel="noopener nofollow ugc">A Vue.js introduction for people who know just enough jQuery to get by</a><br>
<a href="https://laravel-news.com/jquery-vue" rel="noopener nofollow ugc">Vue.js Tutorial: From jQuery to Vue.js</a><br>
<a href="https://codeburst.io/guide-to-vue-js-for-jquery-developers-6e16e9ae1505" rel="noopener nofollow ugc">Guide to Vue.js for jQuery developers</a></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56107" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/22">Post #21</a>
	                </div>
	            </div>
              <div id="likers-container-56107" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56107"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #21"></div>
  </section>
</div>
    <div class="postbit" id="56142" data-post-id="56142">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="herdibintang" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  herdibintang
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="acrolink" data-post="21" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/acrolink/48/8985_2.png" class="avatar"> acrolink:</div>
<blockquote>
<p>believe me it will not take you more than 3 days to learn it all and create super interactive application with Phoenix in the back-end and VueJS on the front-end</p>
</blockquote>
</aside>
<p>Didn’t you need to learn about routing and state management too? Did 3 days enough?</p>
<aside class="quote no-group" data-username="peerreynders" data-post="22" data-topic="9185">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/peerreynders/48/5826_2.png" class="avatar"> peerreynders:</div>
<blockquote>
<p>After you append that item to the list in the browser you still have to make an AJAX call to insert that item into the database.</p>
</blockquote>
</aside>
<p>Ah sorry what i mean is when i add item to the list it doesn’t immediately saved to database. You can add 2 or more items to the list and then save to database in a single request.[quote=“peerreynders, post:22, topic:9185”]<br>
I think the idea that was being conveyed is that Vue.js can be gradually introduced into an existing web site that already used jQuery - i.e. it isn’t necessary to switch to Vue.js all at once.<br>
[/quote]<br>
Yeah i misunderstood this part. Thank you for clearing it.[quote=“peerreynders, post:22, topic:9185”]<br>
Have you had a look at Vue.js vs jQuery: Use Cases and Comparison with Examples yet?<br>
[/quote]<br>
Thank you. You give me a lots of good articles.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="56142" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/phoenix-with-a-json-api-and-vue-js-or-html-eex-with-partial-use-of-vue/9185/23">Post #22</a>
	                </div>
	            </div>
              <div id="likers-container-56142" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="56142"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #22"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/9185/load_more?page=3">Load more posts (2 remaining)</a>
</div></template></turbo-stream>