update angular directive templates