State management in angular

shape