Search Posts

Category: angularjs-bootstrap

Angular pre-selected

I have a modal that can edit. But in my modal I cant pre-select. This is my HTML <select ng-model=’names.productionType’ ng-options=”data for data in productionType”></select> This is my Script $scope.productionType =[ “Article LP Composition”, “Normal LP Composition”, “Reading Material”, “Transcribed Manuscript”, “LP Production” ]; So far this is what I tried HTML <select ng-model=’editable.productionType’ ng-options=”data for data in productionType” ng-selected=”editable.productionType='{{names.production_type}}'”></select> In my script $scope.names.productionType = “Normal LP Composition”; It will pre selected but the problem […]