본문 바로가기 메뉴 바로가기

개발과 취미

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발과 취미

검색하기 폼
  • 분류 전체보기 (22)
    • Javascript (5)
      • 비동기 프로그래밍 (5)
    • Angular8 (13)
    • 주식 모으기 (1)
  • 방명록

Angular8 (13)
[Angular] Event Binding 2

이벤트로 값을 전달 하는 법 input 태그를 사용하여 설명한다. 이런 코드 가 있다. input 이란 이벤트가 발생 할 때 마다 showName 이란 함수를 실행하라는 말이다. 그러면 Component 코드를 보자 import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-test', templateUrl: './test.component.html', styleUrls: ['./test.component.css'] }) export class TestComponent implements OnInit { name; constructor() { } ngOnInit() { } showName() { console.log('hi..

Angular8 2020. 4. 7. 15:34
이전 1 ··· 3 4 5 6 7 8 9 ··· 13 다음
이전 다음

Blog is powered by Tistory / Designed by Tistory

티스토리툴바