I have a string array in angularJS and I want to make some kind of view for this element. I try this code, but it does not work, and I do not know why anyone has an idea.
<div id="cpntainer" data-ng-init="countries = ['Syria','Lebanon','Jordon','Egypt']"> Country Name <br /> <input type="text" data-ng-model="name" /> <br /> <ul> <li data-ng-repeat="country in countries | filter:name | orderBy:country:false "> {{ country }} </li> </ul> </div>
source share