Accessing dom element outside VueJS Component – querySelector or Jquery


Outside component: 
  <input id="mytest" type="text" value="test"  >

In the Vuejs component querySelector or Jquery 
console.log("mytest: "+ document.querySelector("#mytest").value);
console.log("mytest 2: "+ $("#mytest").val());


querySelector Browser compatibility

VueJs getting started , starters

Getting Started with Vue – An Overview and Walkthrough Tutorial


VueJS for Dummies — From Vanilla JS to ES6

Vue Axios Post Request Example

Using Axios to Consume APIs

Cracking Vue.js, using Axios inline html code

How to create tabs in Vue.js

Vuejs and Axios injecting in the html site

You know the better way using CLI and Component…


  <script src=""></script>
  <script src=""></script>

<div id="app">
  {{ info }}

new Vue({

  el: '#app',
  data () {
    return {
      info: null
  mounted () {
      .then(response => ( = response))