27,500원
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결Angular, 앵귤러 100분 핵심강의
오류
실습 내용을 보면서 따라 하고 있는데요 몇 번을 봐도 똑같이 한거 같은데 자꾸 이런 오류가 나오는데요 혹시 무언이 문제 인가요?
- 미해결Angular, 앵귤러 100분 핵심강의
item.ts에서 정의할 떄 정의가 안됩니다.
속성 'title'은(는) 이니셜라이저가 없고 생성자에 할당되어 있지 않습니다.ts(2564) title은 영상에서 id와 name입니다.
- 미해결Angular, 앵귤러 100분 핵심강의
클래스 수업 내용 중 오류 질문
두가지 파일에서 오류가 있습니다. 참고로 하기 환경에서 작업을 하고 있습니다. Angular CLI: 13.2.2 Node: 16.13.2 Package Manager: npm 8.1.2 OS: win32 x64 Angular: 13.2.1 클래스로 만든 Item.ts 클래스에서도 강사님하고 동일하게 작성하면 오류가 납니다. export class Item { id: String; name: String ; available: boolean ; } 오류 내용: 속성 'id'은(는) 이니셜라이저가 없고 생성자에 할당되어 있지 않습니다.ts name, available 다 동일한 오류가 뜹니다. 해결 방법이 있을까요? item.component.html <div> <label> <input [(ngModel)]="item.id" placeholder="ID"/> </label> </div> <div> <label> <input [(ngModel)]="item.name" placeholder="Name"/> </label> </div> <button (click)="saveItem()">Save</button> ngModel = item.id /item.name 의 item에서 모두 오류가 납니다. Property 'item' is private and only accessible within class 'ItemComponent'.ngtsc(2341) item.component.ts(11, 4): Error occurs in the template of component ItemComponent. Property 'item' is private and only accessible within class 'ItemComponent'.ngtsc(2341) item.component.ts(11, 4): Error occurs in the template of component ItemComponent. 문제 보기 빠른 수정을 사용할 수 없음
- 미해결Angular, 앵귤러 100분 핵심강의
라우팅 강의 내용 중 아래와 같이 에러 납니다.
ERROR in app/app.component.html:9:3 - error NG8001: 'router-outlet' is not a known element: 1. If 'router-outlet' is an Angular component, then verify that it is part of this module. 2. If 'router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 9 <router-outlet></router-outlet> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ app/app.component.ts:5:16 5 templateUrl: './app.component.html', ~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component AppComponent.
- 해결됨Angular, 앵귤러 100분 핵심강의
예제 파일은 홈페이지에서 다운받을 수 있다하는데 없네요.
회원가입후 강의 > 해당강의선택 > 자료 > 자료없음.