There are a lot of examples of Reactive Forms, but not many explainations. In fact, there seem to be more “this or that and why” articles than anyone would ever need. But I find understanding “how” it it works to be a more effective teaching method. I’ve outlined how I’ve come to understand Reactive Forms and that understanding helps me put them together faster and with fewer frustrating errors. Also, I find it’s a lot easier to explain what you are doing in code rather than going back and forth between piles of directives in HTML and related coat-hangers and duct-tape in code.
Angluar CLI is a fantastic tool that comes with Webpack already installed and configured. If you’ve never used Webpack, you may not know how it works, but that’s OK, if you know how Angular works, you only need to know how to get your environmental variables to swap out during a production,development or custom build. It’s actually super easy and I’ve included directions on exactly how to do it.
Using Angular 2 for smaller projects always seemed like overkill. The setup was time consuming and the size of the files was outrageous. Now, there is a new tool that a life saver for all businesses using Angular 2. This new program will create the basic templates for all your angular 2 objects, set them up with webpack, and automatically implement uglyfying and tree-shaking. Not only is it a huge time-saver, but if you are working in groups, the default file structure and naming conventions are great. Now that Angular2 is officially “out”, it is ready for production sites. Now that there is an efficient way to produce them, we will start using it.