Update attribute HTTML for angularjs