17.0.0 • Published 6 months ago

ngx-daum-postcode v17.0.0

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

NgxDaumPostcode

카카오에서 제공하는 우편번호 서비스를 Angular 환경에서 편하게 사용하기 위해 감싼 WrapperComponent를 제공하는 비공식 라이브러리입니다.

사용법

npm install

npm i ngx-daum-postcode

app.module.ts

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxDaumPostcodeModule } from 'projects/ngx-daum-postcode/src/public-api';

import { AppComponent } from './app.component';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxDaumPostcodeModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule { }

app.component.html

<ngx-daum-postcode
  (onComplete)="onComplete($event)"
  (onSearch)="onSearch($event)"
  (onResize)="onResize($event)"
></ngx-daum-postcode>

app.component.ts

import { Component } from '@angular/core';
import {
  DaumPostcode,
  Search,
  Size,
} from 'ngx-daum-postcode';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
})
export class AppComponent {
  title = 'ngxDaumPostcode Example';

  onComplete(daumPostcode: DaumPostcode): void {
    console.debug(daumPostcode);
  }

  onResize(size: Size): void {
    console.debug(size);
  }

  onSearch(data: Search): void {
    console.debug(data);
  }
}
17.0.0

6 months ago

16.0.0

1 year ago

15.0.0

1 year ago

14.0.0

2 years ago

13.1.1

2 years ago

13.1.0

2 years ago

13.0.0

2 years ago

0.0.1

2 years ago