update ch6 for AngularDart 1.x