Decision guides

Short decision guides for common AngularTS architecture choices.

Use these guides when more than one feature can solve the problem:

Each page gives a default and the conditions that justify another choice.


Templates or typed views

Choose between declarative HTML templates and type-safe DOM construction.

Controller state, models, or services

Put state at the narrowest lifetime that satisfies its consumers.

HTTP, SSE, WebSocket, or WebTransport

Select a network transport from the communication pattern and fallback requirements.

CSS or JavaScript animations

Choose the simplest animation mechanism that meets sequencing and control needs.

Component, directive, or web component

Choose the correct ownership and interoperability boundary.