Closed
Description
Bug Report or Feature Request (mark with an x
)
- [ bug report ]
ERROR Error: Uncaught (in promise): Error: Cannot find module './app/example/template/test-template/test-template.module'.
### Versions.
@angular/cli: 1.0.0
node: 6.9.4
os: darwin x64
### Repro steps.
when load dynamic module, using SystemJsNgModuleLoader.load(this.path), in browser inspect, got this error: "ERROR Error: Uncaught (in promise): Error: Cannot find module "'./app/example/template/test-template/test-template.module'
files path:
-src/app/example/template/test-template/test-template.module.ts
-src/app/example/example.component.ts
In example.component.ts, I tried to use this.path as below but all cannot work :
1. src/app/example/template/test-template/test-template.module
2. app/example/template/test-template/test-template.module
3. ./app/example/template/test-template/test-template.module
4. ./template/test-template/test-template.module
### Mention any other details that might be useful.
Does angular-cli allow us to load a module dynamically?
Thanks.
Metadata
Metadata
Assignees
Labels
No labels