- TL;DR: Domain models are important for defining and enforcing business logic in applications and are especially relevant as apps become larger and more people work on them.
- In this article, we show how this can be done in an Angular 2 app by moving logic out of the component and into a model.
- We also cover how to inject model classes using Angular 2’s new Dependency Injection system.
- One way we can achieve this type of structure in Angular 2 applications is by using models to organize our business logic.
- In this tutorial, we will see how we can abstract business logic to a model in an Angular 2 app and use the new Dependency Injection (DI) system to call upon these models.
Tweets by pkozlowski_os
Tweets by PascalPrecht