<body ng-app>
<div class="container" ng-init="nameList=['Adam','Rain','John',King]" ng-model="nameList">
<input type="text" ng-model="nameText" />
<ul>
<li ng-repeat="name in nameList | filter:nameText | orderBy:'name'">{{name}}</li>
</ul>
</div>
</body>
no idea what's wrong with my code, what I want to do is to filter out some names with the input.. like I enter "A", it display only "Adam"..