diff --git a/src/index.ts b/src/index.ts index c3113f7..3c10495 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,15 +8,16 @@ module tagIt { - angular.module('tagit', ['ngStorage']) + export function init(callback: () => void) { + + angular.module('tagit', ['ngStorage']) .config(AppConfigInitializer) .service('AppConfigService', AppConfigService) .service('BackendService', BackendService) .service('WebPageService', WebPageService) .service('TagStorageService', TagStorageService) .controller('MenuCtrl', MenuCtrl); - - export function init(callback: () => void) { + var iframe = document.getElementById("tagit-iframe") angular.bootstrap(iframe.contentDocument.getElementById("tagit-menu"), ['tagit']); console.log('TagIt menu loaded');