TD Interview Question

write a simple Angular JS application to get back a REST message. Use recursive to resolve an output