move angular config to macro