mgechev / mgechev/lazy-loading-routes-angular2

componentProxyFactory - Cannot find name 'System'.

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Hi

Am trying to implement lazy loading in AngularJS 2. your componentproxy component is simple great. i tried to implement the same, but i get error while loading component using path.
System.import(provider.path)
![ng2-error](https://cloud.githubusercontent.com/assets/20852983/17431178/4ad1146c-5b16-11e6-992f-2ef9957ddf3e.png)

it seems "System" is not module which can be imported from angular2 libraries. how to import system into the component or how to load component dynamically using relative path.

this will help to solve my routing issue.

thanks
sendil

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the componentproxy usage described in the issue and the call to System.import(provider.path), then inspect how this project configures module loading. Confirm what change is needed for the component to load from a relative path without the “Cannot find name 'System'” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.