Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman14 committed Oct 25, 2016
1 parent 68a4347 commit 455463a
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 211 deletions.
13 changes: 12 additions & 1 deletion dist/ng-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,8 @@

// Allowed events from parrent iFrame
this.events = {
'component': this.loadComponent
'component': this.loadComponent,
'model': this.loadModel
};
}

Expand All @@ -888,6 +889,16 @@
value: function $onDestroy() {
this.postMessageListener();
}
}, {
key: 'loadModel',
value: function loadModel(model) {
if (model) {
for (var k in model) {
this[k] = model[k];
}
}
this.$scope.$apply();
}
}, {
key: 'loadComponent',
value: function loadComponent(component) {
Expand Down
Loading

0 comments on commit 455463a

Please sign in to comment.