angular.js - I want to use angular to simulate the select drop-down box effect, as shown below, but I don't know how to achieve it?
高洛峰2017-05-15 17:00:11
0
2
504
When the user clicks on the p (A) of "Wuhan", a drop-down box p (B) will appear. The content in B is dynamically generated. Then click on any content in B, and then assign it to A. area, and then B is hidden.
Look for open source reference
https://github.com/angular-ui/ui-select
controller:
html