Linked Questions

Popular Questions

Is this data function Vue or Node?

Asked by At

i am very new to programming and have been doing a html project for school, when the professor stated that we are only supposed to use nodejs for our project. Here i am afraid that the function i used below is vue and not node, can anyone confirm?

data: function () {
              return {
                games: []
              };
            },
            mounted: function () {
              var that = this;
              $('.carousel.carousel-slider').carousel({
                fullWidth: false,
                indicators: true
              });
              $.getJSON('/getgames').then(function (games) {
                that.games = games;
              });
            }
          });

Related Questions