일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ajax 사용 예시
- 검색
- angular route
- 앵귤러 애니메이션
- Router
- mysql if
- Angular Router
- 셀렉트박스 커스텀
- egov spring ajax 사용 예시
- 스크롤 이벤트 감지
- angular animation
- 앵귤러 모달
- TAILWIND
- angular button
- modal
- flex-1
- formgroup
- 스크롤 이벤트
- 모달
- Oracle LISTAGG 사용 예시
- Ionic modal
- 옵저버블
- scroll
- summary
- prisma
- 아이오닉 스크롤 이벤트
- ApexChart
- 호버
- route
- angular modal
- Today
- Total
목록모달 (4)
깜놀하는 해므찌로
delete() { const items = localStorage.getItem('orderInfos'); let orderInfos: OrderInfo[] = []; if (items) { orderInfos = JSON.parse(items); const index = orderInfos.findIndex( (orderInfo: OrderInfo) => orderInfo.id === this.orderInfo.id ); orderInfos.slice(index, 1); localStorage.setItem('orderInfos', JSON.stringify(orderInfos)); } this.modalController.dismiss(null, 'confirm'); } 1. dismiss 할 시 ..
closeModal(){ this.modalController.dismiss({ dismissed: true, data: 'ㅋㅋ', }); } 1. 모달 컴포넌트 : 모달 종료 시 데이터 ''ㅋㅋ" 를 전달해보겠습니다. 2. data : 라는 변수명은 데이터를 받을 컴포넌트의 변수명과 일치해야 합니다. async openModal() { // modal 생성 시점 const modal = await this.modalController.create({ component: UpdateAdminModal, componentProps: { admin: this.admin, }, }); modal.onDidDismiss().then((res: any) => { // modal 닫히는 시점 console.log(..
async deleteBranch() { const modal = await this.modalController.create({ component: DeleteBranchModal, componentProps: { item: this.branch, }, }); await modal.present(); modal.onDidDismiss().then((res) => { if (res.role === 'submit') { this.router.navigateByUrl( this.router.routerState.snapshot.url.split('/')[1] ); } }); } 1. 모달 생성과 닫힌 후 로직 2. item : 통신 키 값 import { Component, OnInit, Input } fr..
import { Component } from '@angular/core'; import { ModalController } from '@ionic/angular'; import { ModalPage } from '../modal/modal.page'; @Component({ selector: 'modal-example', templateUrl: 'modal-example.html', styleUrls: ['./modal-example.css'] }) export class ModalExample { constructor(public modalController: ModalController) { } async presentModal() { // 모달 열기 메소드 const modal = await th..