checking  in angular script