Socket
Socket
Sign inDemoInstall

china-area-selector

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    china-area-selector

中国地区三级联动选择插件 for Angular.js


Version published
Maintainers
1
Install size
214 kB
Created

Readme

Source

China-area-selector

Installation

Install via bower

bower install china-area-selector --save

Usage

Add it as a dependency to your app and then use china-area-selector in your HTML files.

HTML

<china-area-selector region="region1"></china-area-selector>
<china-area-selector region="region2"></china-area-selector>

Javascript

var app = angular.module('demo', ['china-area-selector']);

app.controller('Ctrl' , function($scope) {

  $scope.region1 = {};
  
  $scope.region2 = {
    province: '河北省',
    city: '承德市',
    area: '承德县'
  };
});
备注:

对于一些没有区的市辖区直接区县以市辖区名称代替,比如广东省的东莞市。

而对于北京市等直辖市的市辖区直接以北京市代替。

详见 Demo 页面

License

MIT

Keywords

FAQs

Last updated on 28 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc