title: Loopback: How to add afterRemote of a model to another model
body: <p>I have Notification model which looks like this</p>
  
  <pre><code>"use strict";
  
  module.exports = function(Notification) {
  
  
  };
  </code></pre>
  
  <p>And I have another model which is Post:</p>
  
  <pre><code>"use strict";
  
  module.exports = function(Post) {
     Post.prototype.postLike = function(options, cb) {
            this.likes.add(options.accessToken.userId);
  
            cb(null, "sucess");
     };
  
     Post.remoteMethod("postLike", {
      isStatic: false,
      accepts: [{ arg: "options", type: "object", http: "optionsFromRequest" }],
      returns: { arg: "name", type: "string" },
      http: { path: "/like", verb: "post" }
    });
  }
  </code></pre>
  
  <p>What I want is to add afterRemote method of Post inside of notification model ?</p>
  
  <p>Is it possible in loopback ?</p>
  
  <p>It should looks like :</p>
  
  <pre><code>"use strict";
  
  module.exports = function(Notification) {
  
    var app = require("../../server/server.js");
    var post = app.models.Post;
  
    post.afterRemote('prototype.postLike', function(context, like, next) {
      console.log('Notification after save for Like comment');
    });
  };
  </code></pre>
  
  <p>But this does not work.</p>
  
  <p><strong>NOTE:</strong> I can do it Post model itself, but I want to add all of my notification logic in Notification model for simplification and future customization.</p>