Tiago Roldão
Member since Jun 24, 2016
- Profile: /members/13223-tiago-rold-o.htm
- Comments: 2
Recent Blog Comments By Tiago Roldão
-
Implementing A Publish And Subscribe (Pub/Sub) Service In Angular 2 Beta 14
Posted on Jun 27, 2016 at 1:09 PM
@Ben, You're definitely correct, this is an intended subversion of the Object Oriented paradigm as we know from OOP languages. But then again, Classes in Typescript don't implement it correctly (and neither does ES6, as it is still a prototypal inheritance model). Regarding extension of other clas... read more »
-
Implementing A Publish And Subscribe (Pub/Sub) Service In Angular 2 Beta 14
Posted on Jun 24, 2016 at 12:45 PM
Hey Ben, I was recently thinking of a simpler way to achieve this simpler cleanup (apologies for the repetition there). A possible way would be a Class to be extended, that implements the hooks we need, and circumventing method overwriting. Something like this: export class SafeUnsubscriber imple... read more »