6
I have 2 related tables in the bank: The first table: it is called restaurant to another table : Cardapio . The Cardapio Table receives the primary key of the restaurant so it becomes foreign until then everything right, I take this information of the bank with a Php + Mysql Api I do the Join of the 2 tables and returns me a Json : Then I take this data with my Controller Angular Js and play for my view where I use Ng-repeat until everything right it lists the names of Restaurants only that unfortunately repeats the names. Example I have a Restaurant in the Bank named BABYS Gula if I go to the menu table and register 3 snacks for this restaurant the name of this Restaurant in my list repeats 3 times and repeats for those of more restaurants registered .
Diego Augusto has tried even with this worked someone told me that I had to make a filter in Controller in Js but I have no idea how to do this but in ng-repeat I’ve tried almost all Js filters I could try ....
– Dan100
I’m putting together an answer and an example
– DiegoAugusto