coverted jquery to angular