Here is my code:
I added button on top "ADD ROUTE".
This button simulates adding a route to the $scope.route which serve the resources.
After adding a new route, I tried to create a new task using the new route (Route 3).
Unfortunately, the task color remains the default color instead of the new route color.