Move angular declaration inside init method to avoid calling angular before its ready
This commit is contained in:
parent
d24aeb831d
commit
8aea12e76a
1 changed files with 4 additions and 3 deletions
|
@ -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 = <HTMLIFrameElement>document.getElementById("tagit-iframe")
|
||||
angular.bootstrap(iframe.contentDocument.getElementById("tagit-menu"), ['tagit']);
|
||||
console.log('TagIt menu loaded');
|
||||
|
|
Loading…
Reference in a new issue