import angular from 'angular'; import { SFSyncManager } from 'snjs'; export class SyncManager extends SFSyncManager { /* @ngInject */ constructor( modelManager, storageManager, httpManager, $timeout, $interval, $compile, $rootScope ) { super(modelManager, storageManager, httpManager, $timeout, $interval); this.$rootScope = $rootScope; this.$compile = $compile; // this.loggingEnabled = true; } presentConflictResolutionModal(items, callback) { var scope = this.$rootScope.$new(true); scope.item1 = items[0]; scope.item2 = items[1]; scope.callback = callback; var el = this.$compile( "" )(scope); angular.element(document.body).append(el); } }