Use NgAttrs instead of map

Review URL: https://codereview.appspot.com/53960043