We now have a Personal Trainer app. The process of converting a specific 7 Minute Workout app to a generic Personal Trainer app has helped us learn a number of new concepts.
We started the chapter by defining the new app requirements. Then, we designed the model as a shared service.
We defined some new views and corresponding routes for the Personal Trainer app. We also used the existing routing infrastructure to set up a navigation system by extending routes. We then turned our focus to workout building.
One of the primary technological focuses in this chapter was AngularJS forms. The workout builder view employed a number of form input elements and we implemented all common form scenarios.
We worked with the ng-model
directive, explored the NgModelController
API, and learned about formatter and parser pipelines and the role these pipelines play in formatting, parsing, and data validation.
We explored Angular validation in depth, and implemented a custom validation using the NgModelController...