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.
Angular 2 can be really frustrating to set up, but if you understand the index page, you’ll also understand how all of Angular 2 works. Here’s a break down of the INDEX page, more about how it works and in what order things happen than what each file does.
With the number of developers we employ and the level of complexity of our projects, it is sometimes hard for people to remember all the constants and defaults for every object. We generally build Typescript Interfaces that assist in this, but sometimes we need more than just definitions, but actual hard data included. Enum to the rescue…. sort of.