angular.module('app.notes').factory('Note', Note);

Note.$inject = ['$resource'];
function Note($resource) {
    var _note = $resource(
        '/api/notes/:id/',
        null,
        {
            query: {
                isArray: false,
            },
            update: {
                method: 'PATCH',
                params: {
                    id: '@id',
                },
            },
            patch: {
                method: 'PATCH',
                params: {
                    id: '@id',
                },
            },
        }
    );
    return _note;
}

@@ -72,16 +72,30 @@
 esource'
+, 'HLResource'
 %5D;%0Afunct
@@ -112,16 +112,28 @@
 resource
+, HLResource
 ) %7B%0A    
@@ -582,16 +582,416 @@
 %0A    );%0A
+%0A    _note.updateModel = updateModel;%0A%0A    /////////%0A%0A    function updateModel(data, field, noteObject) %7B%0A        var patchPromise;%0A        var args = HLResource.createArgs(data, field, noteObject);%0A%0A        if (field === 'name') %7B%0A            Settings.page.setAllTitles('detail', data);%0A        %7D%0A%0A        patchPromise = HLResource.patch('Note', args).$promise;%0A%0A        return patchPromise;%0A    %7D%0A%0A
     retu

add updatemodel to note service.