일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- TAILWIND
- formgroup
- angular animation
- angular modal
- 옵저버블
- ajax 사용 예시
- prisma
- mysql if
- 스크롤 이벤트
- flex-1
- angular route
- 셀렉트박스 커스텀
- Oracle LISTAGG 사용 예시
- summary
- egov spring ajax 사용 예시
- Angular Router
- 스크롤 이벤트 감지
- Router
- scroll
- ApexChart
- 앵귤러 모달
- 검색
- 호버
- angular button
- route
- modal
- 아이오닉 스크롤 이벤트
- Ionic 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..