Mobile
[ Ionic ] 태그 노출, 비노출 처리
기저귀찬개발자
2019. 12. 8. 23:28
버튼 이벤트를 사용하여 태그에 노출, 비노출 처리를 할때는 ionic 태그 hidden 옵션을 사용해서 처리하면 편리하다
test.page.html
<ion-item [hidden]=ishidden>
<ion-label position="floating">test</ion-label>
</ion-item>
test.page.ts
export class MemSet implements OnInit {
ishidden = false;
...
button(value) {
let ishidden = false;
this.ishidden = (this.ishidden)? false:true;
}
}