Use another directive to display the details of the new object


#1
  1. Use another "program-listing" directive to display the details of the new object "Step 7".

Step .7: This instruction is not clear at all. When you add another "program-listing" in your index.html, you are duplicating the same listing. How do you tell it to go to the next listing? do you use "ng-repeat". Since you do not want to duplicate the code to add a new listing every-time? Any ideas on how to solve step."7." Other than that everything is working fine.


#2

Hi @namirami,

I had the same problem. Indeed, you have to add ng-repeat in index.html and change "program" to "programs" in your MainController.

Hope this helps,

Eric