Angular JS Ng-repeat directive

In this blog I will explain about ng-repeat directives in Angular JS. ng-repeat repeats set of HTML.

<div ng-app="" ng-init="EmpName=
          Stu =[{stufname :'John',address:'India' }
         ,{stufname :'Tom',address:'USA' }
         ,{stufname :'Sachin',address:'India' },
         {stufname :'Rahul',address:'UK' }
         ,{stufname :'Rohan',address:'Australia' }
         ,{stufname :'Sunil',address:'India' }
         ,{stufname :'Rohit',address:'India' }];">
            <br />
            <input type="text" ng-model="empd" />
                <li ng-repeat="s in Stu | filter: empd  | orderBy :'stufname' ">
                    {{s.stufname  }}


Output -

You may try typing in textbox and you may see the result.

Angular JS ng-repeate directives

Share on Google Plus

Please write your comment below. Share this blog on Social media.


Post a Comment

Dear Readers, Please post your valuable feedback in the comment section if you like this blog or if you have any suggestions. I would love to hear the same from you. Thanks