// js/services/note.js

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .factory("Note", NoteFactory);

  NoteFactory.$inject = ["$http", "$routeParams"];

  function NoteFactory($http, $routeParams) {
    function getAllNotes() {
      return $http({
        method: "GET",
        url: "/api/notes"
      });
    }

    function getNoteById() {
      return $http({
        method: "GET",
        url: "/api/notes/" + $routeParams.id
      })
    }

    function createNote(noteData) {
      return $http({
        method: "POST",
        url: "/api/notes",
        data: noteData
      })
    }

    return {
      getAllNotes,
      createNote,
      getNoteById
    }
  }
})();

// js/services/note.js

(function() {
  "use strict";

  angular.module("NoteWrangler")
    .factory("Note", NoteFactory);

  NoteFactory.$inject = ["$http"];

  function NoteFactory($http) {
    function getAllNotes() {
      return $http({
        method: "GET",
        url: "/api/notes"
      });
    }

    function createNote(noteData) {
      return $http({
        method: "POST",
        url: "/api/notes",
        data: noteData
      })
    }

    return {
      getAllNotes,
      createNote
    }
  }
})();

--- 
+++ 
@@ -6,21 +6,14 @@
   angular.module("NoteWrangler")
     .factory("Note", NoteFactory);
 
-  NoteFactory.$inject = ["$http", "$routeParams"];
+  NoteFactory.$inject = ["$http"];
 
-  function NoteFactory($http, $routeParams) {
+  function NoteFactory($http) {
     function getAllNotes() {
       return $http({
         method: "GET",
         url: "/api/notes"
       });
-    }
-
-    function getNoteById() {
-      return $http({
-        method: "GET",
-        url: "/api/notes/" + $routeParams.id
-      })
     }
 
     function createNote(noteData) {
@@ -33,8 +26,7 @@
 
     return {
       getAllNotes,
-      createNote,
-      getNoteById
+      createNote
     }
   }
 })();
Add getNoteById method. Add  to
