Angularjs populate select options with json

前端 未结 4 1063
暗喜
暗喜 2021-02-09 04:54

I am looking to populate select option with values from a basic json array.

The example I have is a country select. Each country has an id element and a name plus other

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-09 05:18

    1. angular.module('ui.bootstrap.demo', ['ui.bootstrap']) - be sure you have ui.bootstrap. Read how to install it http://angular-ui.github.io/bootstrap/
    2. Here is your updated jsfiddle http://jsfiddle.net/e31k5e6L/1/

提交回复
热议问题