updating angular directive for dyn