angular version 3.0 rewrite