(function() {
  angular.module('marvelousnote.notes')
    .service('NotesService', NotesService);

  NotesService.$inject = ['$http'];
  function NotesService($http) {
    var service = this;

    service.getNotes = function() {
      $http.get('https://meganote.herokuapp.com/notes')
      .success(function(notes) {
        console.log(notes);
      });
    };
  }
})();

(function() {
  angular.module('marvelousnote.notes')
    .service('NotesService', NotesService);

  NotesService.$inject = ['$http'];
  function NotesService($http) {
    var service = this;

    service.getNotes = function() {
      $http.get('https://meganote.herokuapp.com/notes')
      .then(function(res) {
        console.log(res.data);
      });
    };
  }
})();

Use then instead of success on promise.
Use then instead of success on promise.
