fix attrs and put wnated in a angular registered constant