added alert directive to angular