Adapting to AngularDart 1.0