Hi Nuvanda, You didn't link your broken plunk, so It's a kind of hard to give an explanation why it doesn't work. I highly suspect that it's a side-effect off transpiling. Are you compiling down to ES5? if so, try compiling to es2015 and see if it's still the case. The problem probably is order. TS moves the assignments you do in the class itself into the constructor. Those are then not known before you initialize the class. As the life-cycle hooks get's detected by a decorator, the detection runs before the class is initialised.
Does that explain this enough for you? if not, don't hesitate to ask! Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
