I used to have select2+jquery in my website, but I've decided to switch to angular.
This used to be my code:
var option = new Option("id", "text"); $("select").append(option);
But now I have no idea how to add an option to select2 manually.
Can you give me a solution?
Thanks