문제 설명
하위 디렉토리의 Angular2.0, SystemJS는 각도 구성 요소를 가져올 수 없습니다. (Angular2.0 in subdirectory, SystemJS cant import angular components)
Angular2.0을 시작하고 있습니다. 저는 5분 빠른 시작을 따르고 있으며 Typescript와 일부 Sass 등을 컴파일하기 위해 grunt
를 사용하고 있지만 모든 것이 잘 작동합니다.
혼자 해결할 수 없는 한 가지 문제가 있습니다. . 모든 공개 파일(생성된 Javascript 및 프로덕션 노드 모듈을 하위 디렉토리로 이동하고 싶습니다. 동일한 도메인에서 다른 애플리케이션을 실행하기 때문에 해당 파일이 있어야 합니다. 프론트엔드는 로그인한 사용자 유형에 따라 다릅니다. (백엔드는 작성됨) phalcon 사용)
내 공용 폴더입니다.(웹 서버의 루트)
Troubles with importing classes from Angular 2 modules with Typescript 1.7
(by Dafen、runmarkets、Camille Wintz、SnareChops、Thierry Templier、user2499264)