ReynierPM
ReynierPM

Reputation: 18660

Feed SELECT with JSON values and set selected value

I'm trying to feed a SELECT element using JSON values but I can not get it to work. I made a plunker to try out but really don't know where my mistake is. I read also AngularJS API for select, any help on this?

Upvotes: 0

Views: 54

Answers (2)

Mobin Skariya
Mobin Skariya

Reputation: 392

You havn't added ng-app in your code. Add it and try again.

Upvotes: 1

tymeJV
tymeJV

Reputation: 104775

You never declare your app in the HTML, you have angular.module("plunker", []) -- so you need ng-app="plunker" in your HTML.

Add ng-app="plunker" to your body tag

Upvotes: 1

Related Questions