개발새발! 🙉

  • 홈
  • 태그
  • 방명록

FormsModule 1

앵귤러 Can't bind to 'ngModel' since it isn't a known property of 'input' 오류 해결

문제 발생 앵귤러에서 양방향 바인딩을 하기 위해 ngModel 문법을 사용하려고 하니 아래 에러가 발생했다. Can't bind to 'ngModel' since it isn't a known property of 'input' 해결 방법 해결법은 매우 간단하다. 양방향 데이터 바인딩을 사용하기 위한 ngModel은 앵귤러 모듈에서 FormsModule 패키지를 import 해야 가져다 쓸 수 있다. 따라서 app.module.ts 파일에서 FormsModule 관련 정보를 추가한다. import { FormsModule } from '@angular/forms'; ... @NgModule({ imports: [ FormsModule ], }) 즉, 아래처럼 두 줄을 추가하면 에러는 사라진다. 앵귤러를 ..

Frontend/Angular 2024.03.19
이전
1
다음
더보기
프로필사진

개발새발루 익힌 Backend, Frontend, Devops 기술을 기록합니다.

  • 분류 전체보기
    • Computer Science
      • 자료구조 & 알고리즘
      • 시스템 소프트웨어
      • 보안 & 인공지능
      • DB
    • Frontend
      • JavaScript
      • WebSquare
      • Angular
    • Backend
      • Java
      • Spring, SpringBoot
      • Python
    • Software Engineering
      • Git, SVN
      • Eclipse, VSCode
      • 기타
    • IT Note
      • 리뷰
      • IT 관련글
      • 자격증
      • 프리랜서
    • Financial Note
      • 재테크
      • 세금

Tag

Javascript, 프로그래밍 언어도감, Programmers, 프리랜서, programers, angular, Book, git, Maven, 앵귤러, JDK, vscode, Eclipse, springboot, IntelliJ, Python, github, java, 알고리즘 풀이, 프리랜서개발자,

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바