Massimiliano,
the only way I can think of is using a Subject (read about RxJS
<https://github.com/ReactiveX/RxJS>, is a thing in angular2).
Basically eveytime the text changes you emit the new value through the
Subject.
myText = new Subject();
setInterval(() => {
this.myText.next(new Date().getTime());
}, 1000);
And then inside your "then(() => {})" you subscribe to that Subject and you
update the value accordingly
this._dcl.loadIntoLocation(DynamicCmp, this._e, 'location').then((ref)
=> {
ref.instance._ref = ref;
this.myText.subscribe((value) => ref.instance._idx = value);
});
Check this pnkr http://plnkr.co/edit/1rVXMXlLGq3A9ROrZATm?p=preview , I
made it with another purpose but you can see how the value changes.
It would be helpful as well if you tell me how the value changes in your
main component and how are you catching that change.
Kind regards.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.