disable if no row exists

If there is no data

 <input type="text" ng-disabled="" />


           <table id="maingT">
 <tr ng-repeat="r in data | filter:r.rtotal" ng-if="true" >  

Open in new window

LVL 9
Seven priceFull StackAsked:
Who is Participating?
 
Imran Javed ZiaConnect With a Mentor Consultant Software Engineer - .NET ArchitectCommented:
Hi,

You can use something like:

ng-disabled="data.length<=0 "
0
 
Seven priceFull StackAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.