Originally the dashboard TS expression ``heroes.slice(1, 5))` had been written as: > _heroService.getHeroes().getRange(1, 5) which is brittle; it fails if there are not enough heroes. Slice doesn't fail; an equivalent express ion in Dart is > _heroService.getHeroes().skip(1).take(4) This is now used. Other changes: - Fix in css (missed TS-side update). - Ran `dartfmt` on `heroes_component.dart`.
Why the _fragments dir is checked in
Within this repo files generated as a result of shredding the _examples
dir ( the contents of the _fragments
dir) are checked in so that we can avoid running the
shredder over the entire _examples
dir each time someone refreshes the repo ( the shred-full
gulp task).
The gulp serve-and-watch
shredder is only a ‘partial’ shredder. It only shred’s files in directories changed during
the current session.