mrhuxu / cn-city-select Goto Github PK
View Code? Open in Web Editor NEW:city_sunset: A directive being used to provide China region selector for Angular app.
:city_sunset: A directive being used to provide China region selector for Angular app.
首先很感谢你分享了这个插件,但是遇到一个比较难解决的问题就是在已经有地址的情况下,我该如何去初始化?
昨天找到了这个插件,然后昨晚用了一下
设置城市没问题
可是关键还有一个读取
当你更新信息的时候
这个select是要有默认选中的地址的
由于设置和读取地址都是共用一个模板
<select ng-options></select>
这个标签如果有默认选项还必须使用ng-model来绑定
这就会出现一个问题 :
当设置地址的时候是ng-model="province"
可是当有默认选项的时候ng-model="provinces[index]" 和设置地址时候的model完全冲突了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.