Changed it to 'get' style of angular instead of var