Fix angular bind function
Fix angular factory snippet