//= require vue //= require vue-resource //= require Sortable //= require_tree ./stores //= require_tree ./services //= require_tree ./components $(function () { window.service = new BoardService($('#board-app').data('endpoint')); new Vue({ el: '#board-app', data: { state: BoardsStore.state }, ready: function () { service.all() .then((resp) => { resp.data.forEach((board) => { BoardsStore.state.lists.push(board); }); }); } }); });