Skip to content

Commit 455463a

Browse files
committed
Update build
1 parent 68a4347 commit 455463a

File tree

2 files changed

+64
-211
lines changed

2 files changed

+64
-211
lines changed

dist/ng-helper.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,8 @@
866866

867867
// Allowed events from parrent iFrame
868868
this.events = {
869-
'component': this.loadComponent
869+
'component': this.loadComponent,
870+
'model': this.loadModel
870871
};
871872
}
872873

@@ -888,6 +889,16 @@
888889
value: function $onDestroy() {
889890
this.postMessageListener();
890891
}
892+
}, {
893+
key: 'loadModel',
894+
value: function loadModel(model) {
895+
if (model) {
896+
for (var k in model) {
897+
this[k] = model[k];
898+
}
899+
}
900+
this.$scope.$apply();
901+
}
891902
}, {
892903
key: 'loadComponent',
893904
value: function loadComponent(component) {

0 commit comments

Comments
 (0)