Updated to work with latest angular dart.