jsheroes / community-help

Helping others is fun, ask away and the ClujJavaScripters community will help you!
15 stars 0 forks source link

select blank #19

Closed mConstantDev closed 7 years ago

mConstantDev commented 7 years ago

select Hi there, i try to make a select with ng-options and for some reason in chrome appear blank select.. one mention ..in chrome inspect my values appear here is my code :

<select name="project" class="form-control" ng-options="project.name for project in projects track by project.id" ng-model="projectTest" ng-init="project.id=0">

                                    </select>

$http.get('http://ec2-52-41-170-185.us-west-2.compute.amazonaws.com:8080/projects').success(function(data){ $scope.projects = data;
console.log(data); });

thanks

raduGaspar commented 7 years ago

Seems to be a CSS issue, what are the styles on that select tag?

mConstantDev commented 7 years ago

you`re right! thanks alot.