Used Angular's $parse function to allow resolution of parameters with nested properties