making dynamic headers work in angular