K
K
KOPC18862016-05-27 12:02:52
JavaScript
KOPC1886, 2016-05-27 12:02:52

How to set value in select2 with already collected data?

Hello!

I use Angular, I created a directive in which the select2 plugin is applied to the element, but how can I make one of the values ​​​​set by default?

Here is a link to an example.
Example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-05-27
@KOPC1886

plnkr.co/edit/y9I96Z7JCccueOZpFsqH?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question