<body ng-app> <datalist id="dataList"> <select id="select"> <option ng-repeat="val in temp" ng-hide="true" >{{val}}</option> </select> </datalist> <input list="dataList" ng-model="fromLocation" /> </body>
http://jsfiddle.net/awnqm/284/ This is a fiddle, I have a simple datalist and an input (using this datalist). Why is the ng-hide tag in the options not working.
ngHide does not work for parameters. You need to use ngIf. But it is available from Angular 1.1.5 ( Angular 1.1.5 introduced the ngIf directive ). So, upgrade your Angular version and use ngIf to solve the problem. Cm.
<body ng-app> <datalist id="dataList"> <select id="select"> <option ng-repeat="val in temp" ng-if="false" >{{val}}</option> </select> </datalist> <input list="dataList" ng-model="fromLocation" /> </body>
http://jsfiddle.net/Gosha_Fighten/awnqm/288/
ngHide simply applies display: none CSS to an element that doesn't work for parameters. For example, [IE11, Win7] "display: none" in the OPTION tag is ignored . ngIf does not display the item at all.
display: none
Source: https://habr.com/ru/post/1247063/More articles:Difference between Matlab delaunayn and Scipy Delaunay - pythonlodash: deep copy object, but not all properties - javascriptβThis project requires the Visual Studio update to loadβ when creating the cross-platform Xamarin.Forms application - c #Transferring objects through streams and maps - javaintegration of webpack and amd modules - webpackConvert JSON with state in circus - jsonMissing WebApiConfig.cs in App_Start. Can I use Startup.cs? - asp.netKarma reloads debug.html when changing test file - javascriptC low read function write function 64 bit equivalent? - cRunning middleware before controller constructor on Laravel 5.1? - phpAll Articles