Hi all, i'm facing a problem, i'm reading the Angular Doc and the section "Fundamentals --> Components & Template --> Template Sintax --> The $any type cast... " click here for the page <https://angular.io/guide/template-syntax#the-any-type-cast-function-any-expression->
Part of the utility of the $ any () function is that it can access undeclared members, but I've never had trouble accessing undeclared members, when i wrote just hero.marker (WITHOUT $any()) work fine, the compiler don't return error. So my question is this, *if the compiler when accessing undeclared members does not return errors* ... what is the purpose of $any ()? -- 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.
