search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

In tutorial app is referenced

Related article: Vue.js Scheduler: Build a Reservation Application in 5 Minutes
Asked by Michael Clovis
5 months ago.

In the data section of your Vue instance, you reference a variable app. Example:

{
  text: "Delete",
  onClick: function(args) {
    var e = args.source;
    app.scheduler.events.remove(e);
    app.scheduler.message("Deleted.");
  }
}

To what does that refer.. It is not defined in the code... Thanks in advance

Answer posted by Dan Letecky [DayPilot]
5 months ago.

It's the Vue app:

var app = new Vue({
  el: '#scheduler-app',
  data: { }
});

It was missing in the previous code samples - the tutorial is updated now.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.