<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wikiprogramming.alfredgg.dev/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wikiprogramming.alfredgg.dev/feed.php">
        <title>Programming wiki2:vue</title>
        <description></description>
        <link>https://wikiprogramming.alfredgg.dev/</link>
        <image rdf:resource="https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-13T10:26:23+0000</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:basic&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:js&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:old&amp;rev=1589016310&amp;do=diff"/>
                <rdf:li rdf:resource="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:webcomponents&amp;rev=1589016310&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming</title>
        <link>https://wikiprogramming.alfredgg.dev/</link>
        <url>https://wikiprogramming.alfredgg.dev/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:basic&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Basic usage of vue</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:basic&amp;rev=1589016310&amp;do=diff</link>
        <description>Basic usage of vue

Vue CLI


sudo npm install -g @vue/cli



vue ui</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:js&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vue and JS</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:js&amp;rev=1589016310&amp;do=diff</link>
        <description>Vue and JS

Basic

We can do this in html file (after this we should include our script):


&lt;vue-app&gt;[[ message ]]&lt;/vue-app&gt;



new Vue({
  el: 'vue-app',
  delimiters: ['[[', ']]'],
  data: {
    message: &quot;Hello Vue! caca de la vaca!&quot;
  }
});


O con una inline template:</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:old&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Vue2 Old</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:old&amp;rev=1589016310&amp;do=diff</link>
        <description>Vue2 Old

Create a project


$ vue init webpack vueapp01


Controller example


&lt;template&gt;
  &lt;div class=&quot;hello&quot;&gt;
  &lt;h1&gt;{{ msg }}&lt;/h1&gt;
    &lt;hr /&gt;
    &lt;div&gt;
      &lt;ul&gt;
        &lt;li v-for=&quot;user in users&quot; :key=&quot;user.name&quot;&gt;
          {{user.firstname}} {{user.lastname}}
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;hr /&gt;
    &lt;div&gt;
      &lt;input type=&quot;text&quot; v-model=&quot;input_val&quot;&gt;
    &lt;/div&gt;
    &lt;div&gt;
      Input Value: &lt;span v-text=&quot;input_val&quot;&gt;&lt;/span&gt;
    &lt;/div&gt;
    &lt;hr /&gt;
    &lt;div&gt;
      &lt;button class=&quot;btn b…</description>
    </item>
    <item rdf:about="https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:webcomponents&amp;rev=1589016310&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-05-09T09:25:10+0000</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Web components</title>
        <link>https://wikiprogramming.alfredgg.dev/doku.php?id=wiki2:vue:webcomponents&amp;rev=1589016310&amp;do=diff</link>
        <description>Web components

UserWebComponent:


&lt;template&gt;
  &lt;div&gt;
    &lt;h1&gt;My Vue Web Component&lt;/h1&gt;
    &lt;div&gt;{{ msg }}&lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&lt;script&gt;
  export default {
    props: ['msg'] 
  }
&lt;/script&gt;



$ vue-cli-service build --target wc --name user-component  --mode production ./src/UserComponent.vue</description>
    </item>
</rdf:RDF>
