I'm new study angularjs , now there is a problem I hava no idea, please hlep me. thank you !
we use CodeIgniter NVC framework
//for example the controller is here
$data['users'] = {something from databases};
$this->load->view('home/index',$data);
now there is a view
//view
<div ng-controller="loadData">
     <ul>
        <!--one :when I init this page I need to show php data-->
        <?php foreach(users as user):?>
        <li><?=$user->name?>:<?=$user->email?><li>
        <?php endforeach?>
        <!--two: but I must to update the users when others insert into users by ajax like
          the follow code -->
        <li ng-repeat="user in users">{{user.name}}:{{user.email}}</li>
    </ul>
</div>
how can I deal with the "one" and "two" show in above codes???
 
    