change the jquery violation to angularjs