Skip to content

Instantly share code, notes, and snippets.

@giancarlosisasi
Created May 12, 2017 18:49
Show Gist options
  • Select an option

  • Save giancarlosisasi/cb99c1e4ff9cc8be566a1a1e2826a17d to your computer and use it in GitHub Desktop.

Select an option

Save giancarlosisasi/cb99c1e4ff9cc8be566a1a1e2826a17d to your computer and use it in GitHub Desktop.
(function() {
"use strict";
angular.module('app')
.controller('GeneralCtrl', GeneralCtrl);
GeneralCtrl.$inject = ['$timeout', 'EnterpriseService', 'TouchPointService'];
function GeneralCtrl($timeout, EnterpriseService, TouchPointService) {
var vm = this;
vm.test = 'test general trip';
vm.journeys = [];
vm.loading = true;
EnterpriseService.journeys().then(function(data){
vm.journeys = data.data.journeys;
vm.loading = false;
})
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment