All Projects → gracefullight → ng2-daum-address

gracefullight / ng2-daum-address

Licence: MIT License
다음 주소 검색 모듈 (리팩토링 중입니다.)

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to ng2-daum-address

angular2-cookie-law
Angular2+ component that provides a banner to inform users about cookie law
Stars: ✭ 38 (+171.43%)
Mutual labels:  angular4, ng4
angular-atomic-app
Angular 5 app built on atomic web design principles
Stars: ✭ 12 (-14.29%)
Mutual labels:  angular4
ionic-app-with-aws-cognito
Angular 4, Ionic 3, and AWS (Amazon) Cognito User Pools. Authentication out of the box.
Stars: ✭ 62 (+342.86%)
Mutual labels:  angular4
pwa-angular4
A progressive webapp with Angular 4 (PLEASE NOTE: angular 5 support PWA )
Stars: ✭ 13 (-7.14%)
Mutual labels:  angular4
kathisto
📦 Server-side rendering for Javascript based web-apps
Stars: ✭ 17 (+21.43%)
Mutual labels:  angular4
angular-ninja
The way to be an Angular ninja
Stars: ✭ 44 (+214.29%)
Mutual labels:  angular4
ngx-embed-video
Get embed code for embedding youtube/vimeo/dailymotion/* video in websites from URL or ID in Angular 6+.
Stars: ✭ 58 (+314.29%)
Mutual labels:  angular4
ngx-image-editor
Awesome image editor for Angular 6
Stars: ✭ 74 (+428.57%)
Mutual labels:  angular4
angular-particle
Particle.js rewritted for Angular2/4
Stars: ✭ 58 (+314.29%)
Mutual labels:  angular4
ng4-stompjs-demo
A sample using Angular4, Angular CLI and @stom/ng2-stompjs
Stars: ✭ 20 (+42.86%)
Mutual labels:  angular4
play-angular-typescript.g8
A giter8 template for a Play Angular 4 Typescript application
Stars: ✭ 91 (+550%)
Mutual labels:  angular4
angular-landing-page
Beautiful Angular landing page with firebase, chat, poll, dynamic features/gallary, and nice animations/scrolling.
Stars: ✭ 43 (+207.14%)
Mutual labels:  angular4
aiEyes
🤖 👁️ Describes photos using audio for Blind and Visually-Impaired Users
Stars: ✭ 23 (+64.29%)
Mutual labels:  angular4
ngx-konami
A simple directive to add easter eggs in your Angular application 👾
Stars: ✭ 34 (+142.86%)
Mutual labels:  angular4
angularHybrid
Hybrid AngularJS/Angular4 application with WebPack
Stars: ✭ 15 (+7.14%)
Mutual labels:  angular4
node-ng-ssr-example
Simple Angular Server Side Rendering example
Stars: ✭ 15 (+7.14%)
Mutual labels:  angular4
glowing-bear
🐻 The modern cohort selection and analysis interface
Stars: ✭ 27 (+92.86%)
Mutual labels:  angular4
angular-rollbar-source-maps
Angular 2+ implementation to upload sourcemaps to Rollbar
Stars: ✭ 17 (+21.43%)
Mutual labels:  angular4
angular-material-datatransfer
A HTML5 datatransfer UI for handling upload and download of multiple simultaneous files.
Stars: ✭ 13 (-7.14%)
Mutual labels:  angular4
angular2-crud-auth-routing
Sample Angular (2.x, 4.x) project with Contacts CRUD + routing + simple authentication
Stars: ✭ 60 (+328.57%)
Mutual labels:  angular4

ng2-daum-address

앵귤러4를 위한 다음 주소 검색

NPM Version Downloads

설치

yarn add ng2-daum-address

1.1.1버전부터 안정적으로 사용하실 수 있습니다. 1.1.3버전부터 앵귤러4를 이용하셔야합니다.

사용법

NgDaumAddressModuleapp.module.ts에 임포트:

import { NgDaumAddressModule } from 'ng2-daum-address';

@NgModule({
  ...
  imports: [
    ...
    NgDaumAddressModule,
  ],
})
export class AppModule { }

템플릿에서 btn-daum-address 컴포넌트를 아래처럼 추가:

<btn-daum-address
  (result)="setDaumAddressApi($event)"
  [options]="daumAddressOptions"
></btn-daum-address>

가져온 컴포넌트.ts 에서 설정:

daumAddressOptions =  {
  class: ['btn', 'btn-primary']
};

setDaumAddressApi(data){
  // 여기로 주소값이 반환
  console.log(data);
}

popup형태가 아닐 경우 아래의 Element를 ParentComponent에 넣어야합니다.

layer

<!-- iOS에서는 position:fixed 버그가 있음, 적용하는 사이트에 맞게 position:absolute 등을 이용하여 top,left값 조정 필요 -->
<div
  id="layer"
  style="display:none;position:fixed;overflow:hidden;z-index:1;-webkit-overflow-scrolling:touch;"
>
  <img
    src="//t1.daumcdn.net/localimg/localimages/07/postcode/320/close.png"
    id="btnCloseLayer"
    style="cursor:pointer;position:absolute;right:-3px;top:-3px;z-index:1"
    alt="닫기 버튼"
  />
</div>

inline

<div
  id="wrap"
  style="display:none;border:1px solid;width:500px;height:300px;margin:5px 0;position:relative"
>
  <img
    src="//t1.daumcdn.net/localimg/localimages/07/postcode/320/close.png"
    id="btnFoldWrap"
    style="cursor:pointer;position:absolute;right:0px;top:-1px;z-index:1"
    alt="접기 버튼"
  />
</div>

옵션

  • type?: String => layer|inline|popup (default popup)
  • target?: String => layer, inline 타입시 embed할 요소의 ID값 (위 소스에서 layer, wrap)
  • width?: Number => layer 타입시 가로크기
  • height?: Number => layer 타입시 세로크기
  • border?: Number => layer 타입시 테두리 크기
  • class?: Array|String => 클래스 부여
  • debug?: boolean => 디버깅 모드

자세한 예제는 여기서 확인 가능합니다.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].