We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a4347 commit 455463aCopy full SHA for 455463a
dist/ng-helper.js
@@ -866,7 +866,8 @@
866
867
// Allowed events from parrent iFrame
868
this.events = {
869
- 'component': this.loadComponent
+ 'component': this.loadComponent,
870
+ 'model': this.loadModel
871
};
872
}
873
@@ -888,6 +889,16 @@
888
889
value: function $onDestroy() {
890
this.postMessageListener();
891
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
902
}, {
903
key: 'loadComponent',
904
value: function loadComponent(component) {
0 commit comments