Controllers have been the basic building block of Angular 1.x since the dawn of time. With Angular 2, the essence of the controller still exists, but it has evolved into a more sophisticated life form known as the component class. In this guide, we will start with a historically accurate Angular controller and then step through a series of techniques you can use to make it closely resemble an Angular 2 component class.
In the recent series on using Angular 2 and .NET Core to check the weather we used the ASP.NET Core Template Pack to save time manually installing/configuring Webpack, Node, Angular etc. That works well if you want to create your new projects using the new project wizard in Visual Studio 2015. But what if you’re using using Visual Studio 2017?