briggySmalls / late-train-mate

A lightweight website that provides stats on delayed or cancelled UK train services
MIT License
0 stars 0 forks source link

Use ngrx/store #37

Open briggySmalls opened 5 years ago

briggySmalls commented 5 years ago

The starter theme uses ngrx/store for maintaining state across the application.

This seems to be the grown-up way for preserving data and keeping things testable.

Whilst there is less need for it here (we don't need to pass data between components) the testability argument stands. It might well be more efficient for Angular to pick up DOM changes too...

briggySmalls commented 5 years ago

Although actually reading about when to use it, it is probably not required. However it might still be fun to learn.