Walmart interview question

How to manage state in an angular application?