-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not reload components via (angular2) async routes #49
Comments
Are there side effects involved with angular2? |
anyone has a working example of ng2 latest build with jspm and hot reloading? |
I have the same issue. It works for the entry level component but when you go to a seperate route nothing gets reloaded |
Can someone submit a PR with a failing test case to |
I don't think there is any way to solve this automagically. Instead, we can tell SystemJS ourselves about what we did. Something like this ought to work (adding to @mgamsjager's example):
If this works well, we could maybe provide it as an export to systemjs-hmr @alexisvincent. |
Tracking here |
When using async routes in Angular2 router the change is detected but the component doesn't gets reloaded.
After reloading a parent component the change is visible.
import {RouteConfig} from 'angular2/router';
@RouteConfig([ {path: '/home', loader: () =>System.import (pathtocomponent).then(comp => comp.compname), name: 'MyLoadedCmp'} ])
class MyApp {}
Loading this component without async routes gives expected results
The text was updated successfully, but these errors were encountered: