Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 22, 2022 03:34 pm GMT

The Most Important Thing You Need To Understand About Angular

The Angular "Template Context" is a practically useful mental model, which once internalized, will be your main guide on the journey to build the best possible Angular applications!

Foreword

This article is pretty long, but dont worry, its not because Angular is just soooo damn complicated Its because were painting a very board picture and looking at it from all the imaginable angles so that in the end you will end up with 100% full understanding of the topic!

In theory, you could just search for the heading saying Template context , but I would strongly advise to check the whole thing

TLDR; In Angular, template related things declarables ( components, directives and pipes ) that use each other in their templates have to be part of THE SAME template context which is defined by @NgModule (or the component itself when using new stand-alone components SAC approach), application then usually has multiple origin template contexts, namely the eager ( root ) one and then for every lazy loaded @NgModule. On the other hand, every SAC defines its own template context in full.

Read full article at angularexperts.io ...


Original Link: https://dev.to/tomastrajan/the-most-important-thing-you-need-to-understand-about-angular-1k4g

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To