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

개발과 취미

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

개발과 취미

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

Angular8 (13)
[Angular] ngFor

ngIf와 비슷한 방식으로 동작한다. 예제코드 import { Component, OnInit, ViewChild } from '@angular/core'; @Component({ selector: 'app-test', templateUrl: './test.component.html', styleUrls: ['./test.component.css'] }) export class TestComponent implements OnInit { carList = [{name: 'G'}, {name: 'V'}, {name: 'H'}] constructor() { } ngOnInit() { } } {{car.name}} G V H 가 순서대로 출력된다 이때 index도 다음 코드 처럼 적용할 수있다. {{car.n..

Angular8 2020. 4. 7. 18:53
이전 1 2 3 4 ··· 13 다음
이전 다음

Blog is powered by Tistory / Designed by Tistory

티스토리툴바