일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 아이러브니키
- Monument Valley
- 강추
- 감상
- 카이로소프트
- 게임
- goblin sword
- 일상
- 아이폰
- 후기
- 잡담
- JavaScript
- 가사
- 공략
- 맛집
- 레고
- 모뉴먼트 밸리
- php
- great forest
- 시사회
- 영화
- Pink
- Monument
- 모뉴먼트
- 유료
- 아이폰게임
- 아이패드
- 추천
- 핑크
- jQuery
- Today
- Total
잡담소장소
[Angular2] Component in Another Component 본문
기존에 Tab으로 되어있는 페이지를 하나로 합치는 작업을 위해 module을 정리하는 과정에서
싱글페이지로 잡을 component에 각 tab에 들어간 component들을 넣으려고 하다가 아래 2가지 에러에 봉착하여
검색 끝에 해결하게 되었다.
1. part of the declarations of 2 modules
https://stackoverflow.com/questions/43598311/component-is-part-of-the-declaration-of-2-modules
Component is part of the declaration of 2 modules
I try to build an ionic 2 app. When I try the app in the browser with ionic serve or launch it on an emulator everything works fine. But when I try to build it every time the error ionic-app-script
stackoverflow.com
component? module? 고민 중에 module이 우선이고 부모 module에 tab module을 추가 해줘야 하는 것을 알게되었다.
2. Angular component, then verify that it is part of this module.
If '' is an Angular component, then verify that it is part of this module
I am new in Angular2. I have tried to create a component but showing an error. This is the app.component.ts file. import { Component } from '@angular/core'; import { MyComponentComponent } from '...
stackoverflow.com
url router로 동작하던 tab component들을 외부에서 사용하기 위해 export 시켜줘야 하는 것을 알게되었다.
T_T 이김에 Angular2 공부 열심히 해야겠다.
'Study ;3' 카테고리의 다른 글
[JAVA] Collections Reverse Sort 시 컴파일에러 (0) | 2019.12.18 |
---|---|
[Javascript] a href를 통해 다운로드 시 beforeunload 이벤트 이슈 (0) | 2019.09.27 |
[jQuery] bootstrap table sort 문제 (0) | 2018.02.19 |
[JAVA] inner function의 AOP 호출 (0) | 2018.02.07 |
[JAVA] spring에서 직접 파일 다운로드 (0) | 2018.01.18 |