I have a controller with items. Let’s say I want to display items in a table if there are any items. How can such logic be implemented in a “view”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ng-repeat already takes care of it for you. ng-repeat only puts in html there if there are items.
Alternately, if you dont even want the table element to be there ( not even mess with calculations! ) you could do something like :
Hope this helps.