Skip to content

Instantly share code, notes, and snippets.

@petrjasek
Created April 11, 2019 12:27
Show Gist options
  • Select an option

  • Save petrjasek/94f999c4ef8670828e9dd5ab7b9a9967 to your computer and use it in GitHub Desktop.

Select an option

Save petrjasek/94f999c4ef8670828e9dd5ab7b9a9967 to your computer and use it in GitHub Desktop.

Revisions

  1. petrjasek created this gist Apr 11, 2019.
    5 changes: 5 additions & 0 deletions signals.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // in module config
    signals.connect('authoring:change', (item, diff, $scope) => { ... });

    // launch signal
    signals.send('authoring:change', {item, diff, $scope});