add some angular magic